The official Python library for the dotapi API
Project description
DotAPI Python API library
The DotAPI Python library provides convenient access to the DotAPI REST API from any Python 3.7+ application.
Installation
pip install dotapi
Usage
from dotapi import OpenAI
client = OpenAI(
api_key="My DotAPI 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, dotapi 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
dotapi-1.0.0.tar.gz
(185.1 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
dotapi-1.0.0-py3-none-any.whl
(321.9 kB
view details)
File details
Details for the file dotapi-1.0.0.tar.gz.
File metadata
- Download URL: dotapi-1.0.0.tar.gz
- Upload date:
- Size: 185.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.6.32-02877-gde0d50d4a56c
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26a53e8b4bcc4cd2c72815695d33cb597c7463bd66da646bc4c2af37c4c2841c
|
|
| MD5 |
9be4eb34beaf1f07a5624160ad16f8f8
|
|
| BLAKE2b-256 |
366d0dc76d2a7a84cb3224920898b38fbd80b4114f64b16a67f980f916b94e88
|
File details
Details for the file dotapi-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dotapi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 321.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.6.32-02877-gde0d50d4a56c
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53af01c440aa0eb44cb0b74d2e0a3ce30f39f5e11dbb138c2a46d082c1a33fb2
|
|
| MD5 |
f54004ee4aa2bfbdc91ecaeb0d17e644
|
|
| BLAKE2b-256 |
9fc04078efb3447141838feffaea203f636191351b4764b64d07c434a5c2e5f1
|