Skip to main content

No project description provided

Project description

AI Router

pip install airouter
import airouter

outputs = airouter.StreamedCompletion.create(
    model='gpt-3.5-turbo-1106',
    temperature=0.0,
    max_tokens=100,
    messages=[{'role': 'user', 'content': 'write a story about the big Large Language Models convention'}]
)
import airouter

outputs = airouter.StreamedCompletion.create(
    model='text-bison-32k',
    temperature=0.0,
    max_tokens=100,
    messages=[{'role': 'user', 'content': 'write a story about the big Large Language Models convention'}]
)
import airouter

outputs = airouter.StreamedCompletion.create(
    models=['gpt-3.5-turbo-1106', 'text-bison-32k'],
    temperature=0.0,
    max_tokens=100,
    messages=[{'role': 'user', 'content': 'write a story about the big Large Language Models convention'}]
)
import airouter

outputs = airouter.StreamedCompletion.create_interactive(
    models=['gpt-3.5-turbo-1106', 'text-bison-32k'],
    temperature=0.0,
    max_tokens=100,
    messages=[{'role': 'user', 'content': 'write a story about the big Large Language Models convention'}]
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airouter-0.1.25.tar.gz (13.7 kB view hashes)

Uploaded Source

Built Distribution

airouter-0.1.25-py3-none-any.whl (19.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page