llm/docs/index.md
2023-07-11 20:00:47 -07:00

1.4 KiB

LLM

PyPI Changelog Tests License Discord

A command-line utility for interacting with Large Language Models, such as OpenAI's GPT series.

Quick start

You'll need an OpenAI API key for this:

# Install LLM
pip install llm
# Or use: brew install simonw/llm/llm

# Paste your OpenAI API key into this:
llm keys set openai

# Run a prompt
llm "Ten fun names for a pet pelican"

# Run a system prompt against a file
cat myfile.py | llm -s "Explain this code"

You can also install plugins to access models by other providers, including models that can be installed and run on your own device.

Contents

---
maxdepth: 3
---
setup
usage
python-api
templates
logging
plugins/index
help
contributing
changelog