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
Release history Release notifications | RSS feed
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.22.tar.gz
(15.4 kB
view hashes)
Built Distribution
airouter-0.1.22-py3-none-any.whl
(21.6 kB
view hashes)
Close
Hashes for airouter-0.1.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e07a9eeccd59b960a3b153f09ee7878223921709e857430552c2e6679f922a9d |
|
MD5 | dc5f90f429f3dfa948c238869e2e8b33 |
|
BLAKE2b-256 | c9d0e1b3dcaa4d6323d9b1f4c8dc3d9cb6ce5f09baf2f732e379010f86fe1c12 |