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.40.tar.gz (14.5 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.40-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airouter-0.1.40.tar.gz
  • Upload date:
  • Size: 14.5 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.40.tar.gz
Algorithm Hash digest
SHA256 d4279524bdad788507ff5bcfac9f8331eae03d907eb2734647a13ccf28846420
MD5 4dfd88088ced4b7e260eed9c5f58d273
BLAKE2b-256 7173db9fdfd91528a6eccba3100ae300594c30fc18c1c994722a2c5aecc495b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airouter-0.1.40-py3-none-any.whl
  • Upload date:
  • Size: 20.8 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.40-py3-none-any.whl
Algorithm Hash digest
SHA256 f9afd52b6fe7d7b1cbea994b0aaa3c7550f8152b68d1adad3ee0635bdc2174a5
MD5 e468efe0db3a088227cb7065a5b81ecf
BLAKE2b-256 62622b153082809a1e3aaa6aa42aa734bc56ed1bf86687ffde2ab7f1efbd96ae

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