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

Uploaded Python 3

File details

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

File metadata

  • Download URL: airouter-0.1.42.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.42.tar.gz
Algorithm Hash digest
SHA256 98642088b56dad20ec73646be9a0cea8b0538fc93d7f4c6e434bc708e5595c01
MD5 32957b5f8e77badfaa79fa5765e6fb44
BLAKE2b-256 18bc387c2f4f33a7b630469eb6ef64af8bf84964ef1feba81f62c0eb96f60282

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airouter-0.1.42-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.42-py3-none-any.whl
Algorithm Hash digest
SHA256 36348c8185c1bc861c4f9689d8847ce2250bf59be60b84aede661db1546f956d
MD5 951870ff34a74d42bbf7250cd5d0da54
BLAKE2b-256 4d358f22f9f49f030b93d1ea6f0224d31fd3dcdb88b62f186a2acc227cb78ab6

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