Metadata-Version: 2.4
Name: vanai-sdk
Version: 1.0.0
Summary: Official Python SDK for the VanAI API.
License: MIT
Project-URL: Homepage, https://pypi.org/project/vanai-sdk/
Keywords: vanai,ai,sdk,chat
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# vanai-sdk (Python)

Official Python SDK for the VanAI API.

## Install

```
pip install vanai-sdk
```

## Usage

```python
from vanai_sdk import VanAI

ai = VanAI(api_key="YOUR_API_KEY")

response = ai.chat(
    message="Hello!",
    system="You are a helpful assistant."
)

print(response)
```

## API

### `VanAI(api_key, base_url="http://78.154.103.16:14168")`

- `api_key` (required) — a key created via the Discord bot's "Create Key" button.
- `base_url` (optional) — defaults to the hosted VanAI server.

### `ai.chat(message, system=None, history=None)`

Returns the reply text (`str`). Raises `VanAIError` if the request fails or
the API key is invalid.

### `ai.health()`

Returns the parsed JSON health-check response from the server.
