Maitai SDK for Python
Project description
Quickstart
Full docs can be found at https://docs.trymaitai.ai
Configure your application in the Maitai portal
From the Maitai Portal, click the + New Application
button to create your first
application.
Fill out your application details, and note the Application Reference
- you'll need that later
Create your first sentinel
Maitai will analyze your application and automatically create sentinels for you over time. However, if you want to enable governance immediately, you can manually create sentinels as well.
Find your application in the portal and click the +
button to create a new sentinel.
Installation
Install the Maitai SDK:
pip install maitai-python
Implementation
Integrating Maitai into your application requires minimal code changes
import maitai as openai
messages = [
{"role": "system", "content": "You are a helpful assistant"},
{"role": "user", "content": "Generate numbers 1-10"},
]
response = openai.chat.completions.create(
messages=messages,
model="gpt-4",
session_id="YOUR_SESSION_ID",
action_type="NUMBER_GENERATOR",
application_ref_name="YOUR_APPLICATION_REF_NAME",
)
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
maitai_python-1.0.23.tar.gz
(19.9 kB
view hashes)
Built Distribution
Close
Hashes for maitai_python-1.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de2af27c35110f4bb7ac1597c29e080aae206a429af7b3922dd79c706d096ec5 |
|
MD5 | 592f76226b45aac713665b317fe4740b |
|
BLAKE2b-256 | 63a0a9a7d2a1fee40e3abc103c0066d2566246c858c691c3fd7f989870ace97e |