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.17.tar.gz
(12.7 kB
view hashes)
Built Distribution
airouter-0.1.17-py3-none-any.whl
(17.6 kB
view hashes)
Close
Hashes for airouter-0.1.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edc08f4a9011258f45501e4b3653abedb39620475a6eef8a7377c3f9439b9a17 |
|
MD5 | 410795f74d7dc9fdd23e737218436ae2 |
|
BLAKE2b-256 | c4cfb5c401da5f338622727db6403388b8ff35efa0297f6bd37d3ca86729d5ae |