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.44.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airouter-0.1.44-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file airouter-0.1.44.tar.gz.

File metadata

  • Download URL: airouter-0.1.44.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.11 Darwin/24.3.0

File hashes

Hashes for airouter-0.1.44.tar.gz
Algorithm Hash digest
SHA256 ba3c2267fe89cb4108d7f79b07ecab8d22444db1a7adb4c667ff8ed57cd2ebb5
MD5 e3b7f9ba113e940b5aa5d653b74d0350
BLAKE2b-256 3eac9a386b0ff6cd17c6aff75cb794e5ce446355e0a0b31ca3fa545fc9c4e0dd

See more details on using hashes here.

File details

Details for the file airouter-0.1.44-py3-none-any.whl.

File metadata

  • Download URL: airouter-0.1.44-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.11 Darwin/24.3.0

File hashes

Hashes for airouter-0.1.44-py3-none-any.whl
Algorithm Hash digest
SHA256 1a479e533a7a5219b206317fc45ea542238d2d07341d110e16f87b2a3f11f63c
MD5 2d75c9d9058f043947b9f8b06f32c522
BLAKE2b-256 5ca7bd603b2f9f54605b4738d4ae2309fb345f834753ae68435b0fb43c70b822

See more details on using hashes here.

Supported by

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