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.33.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

airouter-0.1.33-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airouter-0.1.33.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.11 Darwin/23.6.0

File hashes

Hashes for airouter-0.1.33.tar.gz
Algorithm Hash digest
SHA256 1eddccd16217204570c4e9b13e1bfc292790b0e311664c4eeb246b68be1e8bfc
MD5 3b582f46c97155af7db670c7da5de011
BLAKE2b-256 6ce788d09fd7d4d2973eee16a1b68f7a95b357ed13b875f53935cb4f8a9afbb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airouter-0.1.33-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.11 Darwin/23.6.0

File hashes

Hashes for airouter-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 3a10fa64efa122f66c564b54b205b1678a0597916cb94c697ddc4bcaa9e2e4a1
MD5 924e120ddb7bf6149fde4d157f6a0231
BLAKE2b-256 7d8f65f37a6f10dc5855634a8fd2ba219f2f2b286053309ceb51c733411d7555

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page