Skip to main content

No project description provided

Project description

shellm

Use OpenAI LLMs from the command line.

Quick Start

Install

pip install shellm

Export OpenAI key

export OPENAI_API_KEY=sk-...

View commands

shellm --help

Completions

View completion help

shellm completion --help

Create a simple completion

shellm completion --prompt "Once upon a time" --max-tokens 128 --stream --echo

Chat

View chat help

shellm chat --help

Create a simple chat completion

shellm chat --user-message "Tell me a story" --stream --max-tokens 128

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

shellm-0.4.1.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

shellm-0.4.1-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

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