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.34.tar.gz
(14.3 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.34-py3-none-any.whl
(20.6 kB
view details)
File details
Details for the file airouter-0.1.34.tar.gz.
File metadata
- Download URL: airouter-0.1.34.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.11 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a43d6c7219d43513e9d1375f1925c398e81f7b8c18cd1bd681bc27717edc2f2
|
|
| MD5 |
edafa24cd8b1668d2151eab8fc05589b
|
|
| BLAKE2b-256 |
20fd7a7b1fdca632374997073f29c886127263e52e72307ef5475e37925eea81
|
File details
Details for the file airouter-0.1.34-py3-none-any.whl.
File metadata
- Download URL: airouter-0.1.34-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.11 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b5a2496c28d6950bf7f809dcbdd151e6e07ad0f149fbab1d190a35d7fc6a2eb
|
|
| MD5 |
b3c5b484d86d163c50b26e6994da70d7
|
|
| BLAKE2b-256 |
6a8a13c0a356655bc69cfa30ef67f5dfbf650a043246455a1831148d984af72a
|