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.40.tar.gz
(14.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
airouter-0.1.40-py3-none-any.whl
(20.8 kB
view details)
File details
Details for the file airouter-0.1.40.tar.gz.
File metadata
- Download URL: airouter-0.1.40.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.11 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4279524bdad788507ff5bcfac9f8331eae03d907eb2734647a13ccf28846420
|
|
| MD5 |
4dfd88088ced4b7e260eed9c5f58d273
|
|
| BLAKE2b-256 |
7173db9fdfd91528a6eccba3100ae300594c30fc18c1c994722a2c5aecc495b9
|
File details
Details for the file airouter-0.1.40-py3-none-any.whl.
File metadata
- Download URL: airouter-0.1.40-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.11 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9afd52b6fe7d7b1cbea994b0aaa3c7550f8152b68d1adad3ee0635bdc2174a5
|
|
| MD5 |
e468efe0db3a088227cb7065a5b81ecf
|
|
| BLAKE2b-256 |
62622b153082809a1e3aaa6aa42aa734bc56ed1bf86687ffde2ab7f1efbd96ae
|