Skip to main content

Command-line tool for interacting with LLMs

Project description

AZC - 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, you don't need to switch to another tool to chat with your LLM
  • Use pay-as-you-go pricing for LLM providers (Probably cheaper)

Features

  • Multi-provider support
    • Ollama
    • OpenAI
    • Anthropic
    • Gemini
  • 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
  • Aggregate responses from multiple providers
  • Support more modes (image generation, transcription, etc.)
  • Automated testing?

Installation

pip install azc

Running

% azc
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).
azc> q
Bye!
%

You can specify the first prompt as a command-line argument:

% azc "what is the capital of the moon?"
openai:gpt-4o-mini: The capital of the moon is called "New Moon".
azc>

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.

You should create a .env file which contains your API Key/s.

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.3.tar.gz (8.5 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.3-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file azc-1.0.3.tar.gz.

File metadata

  • Download URL: azc-1.0.3.tar.gz
  • Upload date:
  • Size: 8.5 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.3.tar.gz
Algorithm Hash digest
SHA256 e5ca890fc5a838353dd8db41437bd1a6feeebccc136206bef1644a7ad56c82bf
MD5 5b9fd1c443533eb6b3b78f6b5803e28f
BLAKE2b-256 068e54d9531481d5572b351d754e31a65562282e1deb06633836c429f51a443d

See more details on using hashes here.

File details

Details for the file azc-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: azc-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a80d7b154fefdee08d4213c896ccbf276fb6780574d7485536b8acb5e92ea49
MD5 a98cc628d6ffb546441d658cd57a35ed
BLAKE2b-256 9b5d37aa4092eebdfc0d5211d74d54a6dac342bf49ae779aa5967ee2df3083e8

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