Opper Python client
Project description
Opper Python SDK
Install
pip install opperai
Functions
To call a function you created at https://platform.opper.ai you can use the following code:
from opper import Client
from opper.types import ChatPayload, Message
# Use AsyncClient for async operations
client = Client(api_key="your-api-key")
response = client.functions.chat("your-function-path",
ChatPayload(messages=[Message(role="user", content="hello")])
)
print(response)
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
opperai-0.0.4.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for opperai-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a29b23ba38e681d8275ef24d2dab798f2f336edbe1518f1105140537a89a768f |
|
MD5 | 9852a880ea832008a47965f47265daca |
|
BLAKE2b-256 | 8425e218d27bc9b6b1dbfce3de4583ed43b650a818231e8b18461a4c6f9e2d02 |