Thin Python client for the NONNON API.
NONNON-small is exposed through an OpenAI-compatible endpoint at https://small.nonnon.ai/v1. Email labs@nonnon.ai for an evaluation token.
pip install nonnonFor local development:
pip install -e .from nonnon import Client
client = Client(api_key="YOUR_TOKEN")
response = client.chat.completions.create(
model="nonnon1-small-router",
messages=[
{
"role": "user",
"content": "Mark: Banana for fresh fruit. Generic, descriptive, suggestive, arbitrary, or fanciful?",
}
],
temperature=0,
max_tokens=16,
)
print(response.choices[0].message.content)For the LegalBench reproduction recipe, see NonnonLabs/nonnon-small-legalbench.