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.41.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.41-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airouter-0.1.41.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.41.tar.gz
Algorithm Hash digest
SHA256 0e694911353e233a1a426c9e4ad8ca44edc244fb24475ed1b221b5966193d165
MD5 6bab4e3e8e3f960ab3e4c2e520bbc336
BLAKE2b-256 5b2c8e8a2f98e9d3c4909f2c4afa6552f96081648c214f4e958ed75582729967

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airouter-0.1.41-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.41-py3-none-any.whl
Algorithm Hash digest
SHA256 dd99bbf864b7681cecb4e276b3d0e56c0c00b7388b359c02d00e0122049ef1c0
MD5 6d941df327d320f44d4d50fbbd6a6f24
BLAKE2b-256 5398a8f26118eec5c9953b03075e2d18d1390ae935936b8df2805fca1148dabc

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