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.8.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for opperai-0.0.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ba664bf860d02fd7146c85ce710ebf9a79db2fbd8eced4e9fd969f71da4f277 |
|
MD5 | e80e43d801715ec39bca9102948c15be |
|
BLAKE2b-256 | e6502f562cf34198fc72a8e9d50a24163b835a535ee2064d19127c2f29c22601 |