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

Uploaded Python 3

File details

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

File metadata

  • Download URL: airouter-0.1.43.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.43.tar.gz
Algorithm Hash digest
SHA256 252579297382d604b868e4847e947369afc77d50b8c143ca992e36220797c732
MD5 14ce1e21cb157d8683fd4173a7dfd43e
BLAKE2b-256 a29da57a089add4767fe354088313ed33bf4bf605af1de2a9791ba3177a03da7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airouter-0.1.43-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.43-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f116efdf42ec98bae3eeb289c35b7051b7f1467c2c86e18ac2c6a26426684f
MD5 26c2f39237ded90b31d297e4d35f90dc
BLAKE2b-256 ecf78f288aa40933f865dd26849183e19efb881d168e89db9bca859c3d3adc6e

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