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.39.tar.gz
(14.4 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.39-py3-none-any.whl
(20.7 kB
view details)
File details
Details for the file airouter-0.1.39.tar.gz.
File metadata
- Download URL: airouter-0.1.39.tar.gz
- Upload date:
- Size: 14.4 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 |
f2668e4b7b1ab84a463f7e0e6c8a5fad3de10c8f7f851a2d60642fec48c6eb97
|
|
| MD5 |
2fe0b78b8efb016bad4a38349ea54e22
|
|
| BLAKE2b-256 |
fd3583c25ffb586196d6a62d686b24e11da4b35e5aa25063b9e45ebad3e17c14
|
File details
Details for the file airouter-0.1.39-py3-none-any.whl.
File metadata
- Download URL: airouter-0.1.39-py3-none-any.whl
- Upload date:
- Size: 20.7 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 |
01202fcfeb0d184ea7099f3109b65cbc499ec4d56309b00004c8bd7afdfa3dc9
|
|
| MD5 |
1ebf602598cb766878276703b9ac19d6
|
|
| BLAKE2b-256 |
13bf98fa1f1b76b35bf9e26558072539b3d803da3981857b584d1d8857244e4e
|