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.7.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for opperai-0.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2940b20b76ea0329b3d480b43d0689ab062f738b1da958be31d239125101fe40 |
|
MD5 | 61e5fc36f5b8fa7e34e5a9f9294ac806 |
|
BLAKE2b-256 | 5aa85cda9efb8d81ed80ca5c936f8d6c6ad871d05ec8e41e92b7638d131c99e8 |