Skip to content

NonnonLabs/nonnon-sdk-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NONNON Python SDK

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.

Install

pip install nonnon

For local development:

pip install -e .

Quickstart

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.

About

Python SDK for the NONNON API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages