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.41.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.41-py3-none-any.whl
(20.9 kB
view details)
File details
Details for the file airouter-0.1.41.tar.gz.
File metadata
- Download URL: airouter-0.1.41.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 |
0e694911353e233a1a426c9e4ad8ca44edc244fb24475ed1b221b5966193d165
|
|
| MD5 |
6bab4e3e8e3f960ab3e4c2e520bbc336
|
|
| BLAKE2b-256 |
5b2c8e8a2f98e9d3c4909f2c4afa6552f96081648c214f4e958ed75582729967
|
File details
Details for the file airouter-0.1.41-py3-none-any.whl.
File metadata
- Download URL: airouter-0.1.41-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 |
dd99bbf864b7681cecb4e276b3d0e56c0c00b7388b359c02d00e0122049ef1c0
|
|
| MD5 |
6d941df327d320f44d4d50fbbd6a6f24
|
|
| BLAKE2b-256 |
5398a8f26118eec5c9953b03075e2d18d1390ae935936b8df2805fca1148dabc
|