Command-line tool for interacting with LLMs
Project description
ASC - LLM Chat from the command-line
A command-line tool for interacting with LLMs.
Why should you use this?
- If you're a command-line junkie, no need to switch to another tool
- Use pay-as-you-go pricing for LLM providers (API vs. Chat)
Features
- Multi-provider support
- Ollama
- OpenAI
- Anthropic
- Streaming responses
- Persistent command-line history
- Chat history & reset (start new chat)
- Switch provider and model
- Markdown output
Possible future features
- Support for more LLM providers
- Support RTL languages
- Save output to file
- Patterns library
- Upload files
- Support more modes (image generation, transcription, etc.)
- Automated testing?
Installation
clone the repository
install dependencies: `pip install -r requirements.txt`
install the package: `pip install .`
Later, when the package will be available on PyPI, you will be able to install it via pip:
`pip install azc`
Running
```bash
% azc
> how tall is the eifel tower?
openai:gpt-4o-mini: The Eiffel Tower is approximately 1,083 feet (330 meters) tall, including its antennas. The structure itself, without antennas, is about 1,063 feet (324 meters).
> q
Bye!
%
You can specify the first prompt as a command-line argument:
% azc "what is the capital of the moon?"
gpt-4o-mini: The capital of the moon is called "New Moon".
>
```
Commands
qorexit- exit the programhor?- show helpl- list modelsn- start new chatp- Change providerm- Change model
Setup
You will need to configure at least one LLM API.
For example, if using the OpenAPI Completion API, you should create a .env file which contains your API Key.
See .env.sample for a sample file
Here are the links to the API sign-up pages (or download in case of Ollama):
Contributing
Contributions are welcome! Please feel free to submit a PR.
License
MIT
Project details
Release history Release notifications | RSS feed
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 azc-1.0.1.tar.gz.
File metadata
- Download URL: azc-1.0.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76e0eab748258d77d5aac033e58a3862341a04b2147d7403da38b089d78f6c22
|
|
| MD5 |
fbc371d622657786d075fcd8c7e52dd4
|
|
| BLAKE2b-256 |
bb95d7a435176742622a8d4e52d027631dfc2a453994266a83d487ea0909ce34
|
File details
Details for the file azc-1.0.1-py3-none-any.whl.
File metadata
- Download URL: azc-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37a2e503c9cfb1d967b495ac1f6c1f37bb58d97ab54dd76c874a55c4f5d17cd3
|
|
| MD5 |
df912156722f7b6a7c25d6e4a9c94c75
|
|
| BLAKE2b-256 |
2445309bb61bf951393577a442acf1da8a3a09e26729b98ce0f7aaf4f3a9f04d
|