Language Model Command Line Interface
Project description
Lang Model CLI
A command line interface for interacting with large language models.
Quick Start
Install with pip
pip install lang-model-cli
Export provider API keys
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-..."
...
Use the CLI
Full usage instructions can be viewed using,
lmc --help
Here are the basics.
user message with --prompt or -p
lmc -p "briefly describe cosmology"
stream output with --stream or -s
lmc -p "briefly describe cosmology" -s
system message with --system or -y
lmc -p "briefly describe cosmology" -s -y "speak like a pirate"
user message with pipe
cat <filename> | lmc
If text is piped in and there is no -p option then the piped input will become the user message content.
user message with pipe and -p
cat <filename> | lmc -p "Summarize the following text: @pipe"
In this case, the @pipe string will be replaced with the piped in text.
This could also be accomplished using command substitution,
lmc -p "Summarize the following text: $(cat <filename>)"
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lang_model_cli-0.1.5.tar.gz.
File metadata
- Download URL: lang_model_cli-0.1.5.tar.gz
- Upload date:
- Size: 55.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
371cc4c4d4cbb88c14872dd42af620aa2859ec68982bc0a616b39a20c5ebd836
|
|
| MD5 |
7f78b6faafc6a8afda3799559a3f6dad
|
|
| BLAKE2b-256 |
83983c501541a76cbb019af5b67f485fc94b91f04891c57c8765e99294a2e540
|
File details
Details for the file lang_model_cli-0.1.5-py3-none-any.whl.
File metadata
- Download URL: lang_model_cli-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43dfcc4642e1e3fa0127fbb8965da232876f0e3f9cb19fcb44a272cc505f0e40
|
|
| MD5 |
808941451c2e7423d8e4b7615e55c902
|
|
| BLAKE2b-256 |
3e7500f75fe5a17ad6ac0f8ac8ae4744380106aa4b80554c64f40a8d24e549fd
|