Metadata-Version: 2.4
Name: gseai
Version: 1.0.0
Summary: Python client for the GSE AI LocalAI server
Project-URL: Homepage, https://computationalliteracies.net/handbook/tools/ai-server/
Project-URL: Documentation, https://docs.makingwithcode.org/gseai
Requires-Python: >=3.14
Requires-Dist: click>=8.0
Requires-Dist: httpx>=0.28.1
Description-Content-Type: text/markdown

# GSE AI Server API

This package provides an API for connecting to UB GSE's AI server (powered by LocalAI).
See [the Computational Literacies Lab handbook page](https://computationalliteracies.net/handbook/tools/ai-server/)
for details about the server. 

The [documentation](https://docs.makingwithcode.org/gseai) provides details on 
using the API. 

## Quickstart

```python3
from gseai import GSEAIServer

with GSEAIServer("your-api-token") as server:
    # List available models
    models = server.list_models()

    # Simple single-turn chat
    response = server.chat("model-id", "What is machine learning?")

    # Multi-turn chat using the OpenAI-compatible API
    response = server.chat_completions(
        "model-id",
        messages=[{"role": "user", "content": "What is machine learning?"}],
    )

```
