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.36.tar.gz (14.4 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.36-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airouter-0.1.36.tar.gz
  • Upload date:
  • Size: 14.4 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.36.tar.gz
Algorithm Hash digest
SHA256 15b53e35321e5fbfd3fd6a5b1ea297418e9b5f078e452da793a981fdb0ca6ce5
MD5 3d362b0dc09ee7272dba8f630b53bb83
BLAKE2b-256 128e995bdb4670dced916f398dcad974e96e8181fb5681c0cd11d42a092bacd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airouter-0.1.36-py3-none-any.whl
  • Upload date:
  • Size: 20.7 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.36-py3-none-any.whl
Algorithm Hash digest
SHA256 47fe38a19c9f45f18ba9cf26e2153bb799a0de4f649a5ad6710f4fae4e28a308
MD5 c71c0f3642b86bb7ee9c7e5025b92aa0
BLAKE2b-256 3c18bca4383f7b1f94ef7bfd70656391e86e1e357489decfa53b94da7474cb16

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