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 opperai import Client
from opperai.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.5.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for opperai-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0f856deae10248402f4ca9afd52c65de6b0d0d0ce17c57563a3538093617029 |
|
MD5 | 51a89248bdade8c51cd75d62caefc399 |
|
BLAKE2b-256 | 9932238cd4f92ed40d2c19a79c5d02045074d1336dc3d55dbba1acca54b853fa |