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.43.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.43-py3-none-any.whl
(20.9 kB
view details)
File details
Details for the file airouter-0.1.43.tar.gz.
File metadata
- Download URL: airouter-0.1.43.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 |
252579297382d604b868e4847e947369afc77d50b8c143ca992e36220797c732
|
|
| MD5 |
14ce1e21cb157d8683fd4173a7dfd43e
|
|
| BLAKE2b-256 |
a29da57a089add4767fe354088313ed33bf4bf605af1de2a9791ba3177a03da7
|
File details
Details for the file airouter-0.1.43-py3-none-any.whl.
File metadata
- Download URL: airouter-0.1.43-py3-none-any.whl
- Upload date:
- Size: 20.9 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 |
e1f116efdf42ec98bae3eeb289c35b7051b7f1467c2c86e18ac2c6a26426684f
|
|
| MD5 |
26c2f39237ded90b31d297e4d35f90dc
|
|
| BLAKE2b-256 |
ecf78f288aa40933f865dd26849183e19efb881d168e89db9bca859c3d3adc6e
|