Skip to main content

Simple AI interface to chat with your LLM models from the terminal

Project description

sai

Simple AI interface to chat with your Ollama models from the terminal

Features

  • Pretty print real time responses in Markdown, using rich library.
  • Keep conversation context.
  • Autodetect and option to select models.
  • Add support for custom prompts.
  • Add conversation persistency (sessions).

Requirements

An Ollama instance is required to get access to local models. By default, the URL is set to http://localhost:11434.

Install

The project is registered in PyPi: https://pypi.org/project/sai-chat/

So you can install it using any package manager of your preference like pip, but the recommended way is uv tool.

Recommended

Using uv tool:

uv tool install sai-chat

Usage

Start using it in your terminal just by running sai command:

luis@laptop:~ $ sai
╭───────────────────────────────────────────────────────╮
│ Welcome to Sai. Chat with your local LLM models.      │
│                                                       │
│ Available commands:                                   │
│                                                       │
│   /help : Show this help message                     │
│   /quit : Exit the application                       │
│   /model : Select a model                            │
╰───────────────────────────────────────────────────────╯
> Hey                               
╭────────────────────────────────────── LLM Response  ─╮
│ What's up? How can I help you today?                  │
╰───────────────────── llama3.2:1b ─────────────────────╯
> 

Status

This project is under development. Feel free to contribute or provide feedback!

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

sai_chat-0.1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

sai_chat-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file sai_chat-0.1.2.tar.gz.

File metadata

  • Download URL: sai_chat-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for sai_chat-0.1.2.tar.gz
Algorithm Hash digest
SHA256 25fcbef5b84c88dd775f0932a5d386dab17d7218c0dad96c0c3d9bbe19c7a032
MD5 82f534a8ca6d96ec00b5e19872d305a7
BLAKE2b-256 bd64a15da81a8f0c0ba762982555551f2fff5be6bc5239b7dc564592b6df9817

See more details on using hashes here.

File details

Details for the file sai_chat-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sai_chat-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for sai_chat-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8790c60296355289aaa05c21efc809e88afc1ce91b03789cf3a7dcb6c0fffff
MD5 f5f6a0d6d30dd5c1088cacdcccb5330a
BLAKE2b-256 593309f383331eb83076544800d7092a0a9129f6c6abd99993ce67bdf14a4bcc

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