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.11.tar.gz
(12.4 kB
view hashes)
Built Distribution
airouter-0.1.11-py3-none-any.whl
(17.2 kB
view hashes)
Close
Hashes for airouter-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27a4539050a06fe5559b50c297f4c8ac72a185ad4191040ff8ad166c5f7d17ce |
|
MD5 | c7466b03cd0b0b398859ae69f5810ba5 |
|
BLAKE2b-256 | de76a48191f9d0ce91adfee0070ef00928726f220e19bc6c019bd7df5ba1275d |