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.26.tar.gz
(13.7 kB
view hashes)
Built Distribution
airouter-0.1.26-py3-none-any.whl
(19.8 kB
view hashes)
Close
Hashes for airouter-0.1.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2447e3869175ac81818a1f056b0694fe2c85a3e638a98ae04b21bbf6ad613be |
|
MD5 | 62c16113f520ab82322947e4b6512714 |
|
BLAKE2b-256 | 3032d3fcc03369a4b7fa534f38ce9d22d49840a7b1591ebe97d618158d50665b |