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.45.tar.gz
(14.6 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.45-py3-none-any.whl
(20.8 kB
view details)
File details
Details for the file airouter-0.1.45.tar.gz.
File metadata
- Download URL: airouter-0.1.45.tar.gz
- Upload date:
- Size: 14.6 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 |
0f821f31fb7c57582c013d7bc7ad234c6f7c277af4b183c987e33561a967909a
|
|
| MD5 |
2b39faa015b4d5262918f3feea1ef31e
|
|
| BLAKE2b-256 |
33aa141f4be80f2af7c317b52f09b9b64879756bb718f5f1876255c575324c7d
|
File details
Details for the file airouter-0.1.45-py3-none-any.whl.
File metadata
- Download URL: airouter-0.1.45-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 |
f2020cc3a6a723069ded8403994a1160a0f6f7c18c3ae93ec8e2ee5445c236f5
|
|
| MD5 |
16ae1df2ea443cd444c4cf8a62512ebc
|
|
| BLAKE2b-256 |
6c38dbddd4b2b91aca5c14c838c4a09950e15942a7caa484790f3119d2660516
|