An API wrapper for the ClashAI API
Project description
🚀 | ClashAI Python Package
ClashAI Python Package for easy API integration!
Installation
pip install clashai
Chat Completions
import clashai
client = clashai.Client(api_key="[YOUR API KEY]")
completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Hello, World!",
}
]
)
print(completion['choices'][0]['message']['content'])
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
clashai-1.0.5.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file clashai-1.0.5.tar.gz
.
File metadata
- Download URL: clashai-1.0.5.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e34cd00dfcc9569b35cb0b6aec3877bb02d5d8ea477c96d661543d31aa6c342 |
|
MD5 | 1624a96888480ab299fb9a773019c9cd |
|
BLAKE2b-256 | 3b16c7ee56ee4c43f96087e416227f85cd113e2be32c5c7dd2e4cefa55a06d0d |
File details
Details for the file clashai-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: clashai-1.0.5-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b533a3fd163aab49c4ab93ef5c5f05268cb9612b9276e76fd200bbc4b0c0a219 |
|
MD5 | 8997849205dd3754f7599886f54dc783 |
|
BLAKE2b-256 | 9616a7c4d90314308936f78cb8ed5cb6a024b156fdaf9270dd70c6890f80389e |