Skip to main content

Access large language models from the command-line

Project description

llm

PyPI Changelog Tests License

Access large language models from the command-line

See llm, ttok and strip-tags—CLI tools for working with ChatGPT and other LLMs for more on this project.

Installation

Install this tool using pip:

pip install llm

Detailed installation instructions.

Getting started

First, create an OpenAI API key and save it to the tool like this:

llm keys set openai

This will prompt you for your key like so:

$ llm keys set openai
Enter key:

Now that you've saved a key you can run a prompt like this:

llm "Five cute names for a pet penguin"
1. Waddles
2. Pebbles
3. Bubbles
4. Flappy
5. Chilly

Read the usage instructions for more.

Help

For help, run:

llm --help

You can also use:

python -m llm --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm-0.4.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm-0.4-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file llm-0.4.tar.gz.

File metadata

  • Download URL: llm-0.4.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for llm-0.4.tar.gz
Algorithm Hash digest
SHA256 d7a9f905e1a1549c656f6c697f1e8e7c1015f37cf52ed40fb9e1fbf7a28b8962
MD5 2f7715475422f623a4e687444ac4be1e
BLAKE2b-256 32150b31a634ae874d65b75953efe2d7bdd527d7994253ed81e5ac82505ba3de

See more details on using hashes here.

File details

Details for the file llm-0.4-py3-none-any.whl.

File metadata

  • Download URL: llm-0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for llm-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 108a64b61c215e54d16487abf1e5fca76debd09e11d38f3c7ccafdeadc6174d4
MD5 7e9dda43db4a1f8b7bd594d520a3308c
BLAKE2b-256 c71b9b82e7b9211928065eaa3243bad8d27010168145024030e91a80347f9b10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page