Metadata-Version: 2.3
Name: elia_chat
Version: 1.0.0
Summary: A powerful terminal user interface for interacting with large language models.
Author-email: Darren Burns <darrenb900@gmail.com>
Requires-Python: >=3.11
Requires-Dist: aiosqlite>=0.20.0
Requires-Dist: click-default-group>=1.2.4
Requires-Dist: click>=8.1.6
Requires-Dist: humanize>=4.6.0
Requires-Dist: litellm>=1.35.38
Requires-Dist: pydantic-settings>=2.2.1
Requires-Dist: sqlmodel>=0.0.9
Requires-Dist: textual[syntax]==0.58.1
Requires-Dist: xdg-base-dirs>=6.0.1
Description-Content-Type: text/markdown

## Elia

A powerful terminal user interface for interacting with large language models.

Supports hundreds of LLMs, including ChatGPT, Claude, and even models running locally through [`ollama`](https://github.com/ollama/ollama).

Your conversations are stored locally in a SQLite database.

### Installation

Install Elia with [pipx](https://github.com/pypa/pipx):

```bash
pipx install elia
```

Depending on the model you wish to use, you may need to set one or more environment variables (e.g. `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, etc).

### Quickstart

Launch Elia from the command line:

```bash
elia
```

Launch directly a new chat from the command line:

```bash
elia "What is the Zen of Python?"
```

### Running local models

1. Install [`ollama`](https://github.com/ollama/ollama).
2. Pull the model you require, e.g. `ollama pull llama3`.
3. Run the local ollama server: `ollama serve`.
4. Add the model to the config file (see below).

### Configuration

The location of the configuration file is noted at the bottom of
the options window (`ctrl+o`).

The example file below shows the available options, as well as examples of how to add new models.

```toml
# the model that is selected by default on launch
default_model = "gpt-3.5-turbo"
# the system prompt on launch
system_prompt = "You are a helpful assistant who talks like a pirate."

# example of adding local llama3 support
# only the `name` field is required here.
[[models]]
name = "ollama/llama3"

# example of add a groq model, showing some other fields
[[models]]
name = "groq/llama2-70b-4096"
display_name = "Llama 2 70B"  # appears in UI
provider = "Groq"  # appears in UI
temperature = 1.0  # high temp = high variation in output
max_retries = 0  # number of retries on failed request
```

### Import from ChatGPT

Export your conversations to a JSON file using the ChatGPT UI, then import them using the `import` command.

```bash
elia import 'path/to/conversations.json'
```

### Wiping the database

```bash
elia reset
```

### Uninstalling

```bash
pipx uninstall elia
```
