The official Python library for the dotrouter API
Project description
Dotrouter Python API library
The Dotrouter Python library provides convenient access to the Dotrouter REST API from any Python 3.7+ application.
Installation
pip install dotrouter
Usage
from dotrouter import OpenAI
client = OpenAI(
api_key="My Dotrouter Key", # defaults to os.environ.get("DOTROUTER_API_KEY")
)
chat_completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Say this is a test",
}
]
# No need to pass model, dotrouter will decide the best model for your query!
)
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
dotrouter-1.0.0.tar.gz
(243.8 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
dotrouter-1.0.0-py3-none-any.whl
(323.7 kB
view details)
File details
Details for the file dotrouter-1.0.0.tar.gz.
File metadata
- Download URL: dotrouter-1.0.0.tar.gz
- Upload date:
- Size: 243.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34f088280e142e3e169925686112d6c6f107313174987c2310c4c04326b8fbe7
|
|
| MD5 |
7c68e7beee921c421a269b4f09a5c017
|
|
| BLAKE2b-256 |
73bc8090a06f634ccded3035846b49c555fe85e4840e35df0fd238e5c2320ad2
|
File details
Details for the file dotrouter-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dotrouter-1.0.0-py3-none-any.whl
- Upload date:
- Size: 323.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16d307d9794fef50b55864feab0bc3c19e0ade5d1f8cd2a2c3103c7230d2870e
|
|
| MD5 |
3844a845b1d6df5dff6e121fea553a4c
|
|
| BLAKE2b-256 |
02704242444210611b53b758faf0210d2543d134d9bed8e580779713142add39
|