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.38.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.38-py3-none-any.whl
(20.7 kB
view details)
File details
Details for the file airouter-0.1.38.tar.gz.
File metadata
- Download URL: airouter-0.1.38.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 |
95f17ab3c6509bbb24a32cfbdcb7f9640c67402a1451b6a62565badaaffbed5a
|
|
| MD5 |
ee0bf5f7bdad2a5959dd32065eb937a0
|
|
| BLAKE2b-256 |
3d55e3cea77d6fd320ff827c7d5c63e573dd4865e537eb0f56595f3941eaf383
|
File details
Details for the file airouter-0.1.38-py3-none-any.whl.
File metadata
- Download URL: airouter-0.1.38-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 |
0ecdc529f0c6a4e34bba03bff34d7aa1ac36d68f35a59d159657f68dfb26bfec
|
|
| MD5 |
872bc4640a7bbf782c169babc20f0ce6
|
|
| BLAKE2b-256 |
cff432f9f0620dc8519995b7e9fbbbc08c162bf8d84eb4eb8d9323eda1dba987
|