Metadata-Version: 2.4
Name: djeli
Version: 0.1.0
Summary: Python client for the djeli local LLM server
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27

# djeli

Python client for the djeli local LLM server.

## Installation

```bash
pip install djeli
```

## Usage

```python
from djeli import Djeli

client = Djeli()
answer = client.chat(
    model="qwen2.5-1.5b-instruct-q4_k_m",
    messages=[{"role": "user", "content": "What is the capital of Kenya?"}],
)
print(answer)
```

Requires a djeli serve process running on 127.0.0.1:11435.

## API

. Djeli(base_url="http://127.0.0.1:11435", timeout=300.0)

. client.models() -> list[dict]

. client.chat(model, messages, temperature=0.7, max_tokens=1024, stream=False)

. DjeliError

## License

### MIT

