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.6.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for opperai-0.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64759a24c83beffae1bab9cd8b540622f3d14f8d579a2e306a0455be3b57992a |
|
MD5 | dfc6784278e26a24f7fdeaeb490db8bd |
|
BLAKE2b-256 | 9dfbd456e4404d7207042efad0a70f1ae862ce1dcc706a946b0b46f5ca30788e |