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.18.tar.gz
(12.7 kB
view hashes)
Built Distribution
airouter-0.1.18-py3-none-any.whl
(17.6 kB
view hashes)
Close
Hashes for airouter-0.1.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38430a4e1b15c1e4fddf0f59a8a6558173129848a0688150d26fbd405f4ea32 |
|
MD5 | 3f2f6e6fd9b6f2a02dc6b0c0758ca1ba |
|
BLAKE2b-256 | b4e5cc1b6b7f4895b9bb489a8fab3f152da5a86c0ad7231e169bc03f7064e492 |