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

Uploaded Python 3

File details

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

File metadata

  • Download URL: airouter-0.1.37.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.37.tar.gz
Algorithm Hash digest
SHA256 bed7da53dc5b8d5390a09b7d310a827578b2a176cb6974b6a528243c7fcecae6
MD5 8a37e4d3c467bd71a84ec2a5c799848a
BLAKE2b-256 08ba24f370f3162e2cab29e2f358483f039bca808be2742d11dbfc096be142e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airouter-0.1.37-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.37-py3-none-any.whl
Algorithm Hash digest
SHA256 f9d28450d043a8d938909a1465057a77fa091b516c27d5b9ef1af70177e4046f
MD5 11a34ae93c004a42d8f5454288f9f621
BLAKE2b-256 e3d85c8f88e072365d7dd963a8cfd078a4bd1082dce432ce3474bdf516349f43

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