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'}]
)
Metadata
Release files for airouter 0.1.45
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| airouter-0.1.45.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| airouter-0.1.45-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.4 kB
Release files / airouter-0.1.45.tar.gz
| Download URL | airouter-0.1.45.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f821f31fb7c57582c013d7bc7ad234c6f7c277af4b183c987e33561a967909a
|
|
BLAKE2b-256 checksum How to use checksums |
33aa141f4be80f2af7c317b52f09b9b64879756bb718f5f1876255c575324c7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.10.11 Darwin/24.3.0
|
Release files / airouter-0.1.45-py3-none-any.whl
| Download URL | airouter-0.1.45-py3-none-any.whl |
|---|---|
| Size | 20.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2020cc3a6a723069ded8403994a1160a0f6f7c18c3ae93ec8e2ee5445c236f5
|
|
BLAKE2b-256 checksum How to use checksums |
6c38dbddd4b2b91aca5c14c838c4a09950e15942a7caa484790f3119d2660516
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.10.11 Darwin/24.3.0
|