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.30.tar.gz
(14.3 kB
view hashes)
Built Distribution
airouter-0.1.30-py3-none-any.whl
(20.6 kB
view hashes)
Close
Hashes for airouter-0.1.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86977730dcd2b0f979c2603fadeb86e105da81e5f0f9f1eb098e583ee057fd8 |
|
MD5 | ce4d36e79d8d775c8e90fc61f2f4f125 |
|
BLAKE2b-256 | fd0b0796b48cde33dbea9bd2363347804e5b0b656cb7697a5b7cfa1e6714714c |