Skip to main content

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

  • q or exit - exit the program
  • h or ? - show help
  • l - list models
  • n - start new chat
  • p - Change provider
  • m - 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


Download files

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

Source Distribution

azc-1.0.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

azc-1.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for azc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 76e0eab748258d77d5aac033e58a3862341a04b2147d7403da38b089d78f6c22
MD5 fbc371d622657786d075fcd8c7e52dd4
BLAKE2b-256 bb95d7a435176742622a8d4e52d027631dfc2a453994266a83d487ea0909ce34

See more details on using hashes here.

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

Hashes for azc-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37a2e503c9cfb1d967b495ac1f6c1f37bb58d97ab54dd76c874a55c4f5d17cd3
MD5 df912156722f7b6a7c25d6e4a9c94c75
BLAKE2b-256 2445309bb61bf951393577a442acf1da8a3a09e26729b98ce0f7aaf4f3a9f04d

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