Crates.io | ait |
lib.rs | ait |
version | 0.2.0 |
source | src |
created_at | 2024-08-02 15:45:20.585327 |
updated_at | 2024-10-11 13:16:29.464306 |
description | AIT is a terminal based chat interface for interacting with large language models from various providers. |
homepage | |
repository | https://github.com/wilswer/ait |
max_upload_size | |
id | 1323402 |
size | 140,390 |
ait
is a terminal user interface for interacting with several
generative large language models from multiple providers.
It uses the genai
crate to
communicate with the model providers.
The TUI is built using the ratatui
crate.
Installation requires cargo
to be installed.
cargo install ait
Clone this repository and cd
to the ait
directory and run the application using:
cargo run
Install the application by running:
cargo install --force --path .
The binary name is ait
.
Binaries are also available for download under Releases.
The chat interface is modal and starts in the 'normal' mode.
By pressing the i
key text can be input into the text area.
More information can be found by pressing the ?
key.
To submit queries to the model providers, you either need to obtain an API key and
set the appropriate environment variable OR you need a running
Ollama instance on http://localhost:11434
.
Chat history is stored as a sqlite
database (facilitated by the
rusqlite
crate)
in the users cache directory in the home directory (~/.cache/ait/chats.db
).
In addition, ait
will store a log of the latest chat
in the user's home directory, ~/.cache/ait/latest-chat.log
on macOS and Linux.