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 hashes)