Quickstart
Full docs can be found at https://docs.trymaitai.ai
Installation
Install the Maitai SDK:
pip install maitai-python
Implementation
Implementing Maitai into your application requires minimal code changes.
import maitai
messages = [
{"role": "system", "content": "You are a helpful ordering assistant..."},
{"role": "user", "content": "Generate a response to the customer..."},
]
response = maitai.chat.completions.create(
messages=messages,
model="llama3-70b-8192", ## Remove this line to set model in Portal
session_id="YOUR_SESSION_ID",
intent="CONVERSATION",
application="YOUR_APPLICATION_NAME",
)
Note
Maitai requires openai version 1.30.1 or later. If you are using an older version, please upgrade.
Run Your Application
Run your application, make sure it makes at least one Chat Completion Request, then head over to https://portal.trymaitai.com and watch Maitai learn your application in real time.
Metadata
Release files for maitai-python 1.2.34
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| maitai_python-1.2.34.tar.gz | 152.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maitai_python-1.2.34-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 356.9 kB
Release files / maitai_python-1.2.34.tar.gz
| Download URL | maitai_python-1.2.34.tar.gz |
|---|---|
| Size | 152.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
211d2f99fe003f41a331254a177cefb6e2120c8c3265288ad2fcf2929295f22c
|
|
BLAKE2b-256 checksum How to use checksums |
448359c7e478125ac01ba503f8beadd870a3978c256124d8463f1b94b8e9189f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / maitai_python-1.2.34-py3-none-any.whl
| Download URL | maitai_python-1.2.34-py3-none-any.whl |
|---|---|
| Size | 204.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8aa0424f558e4440946ce87f4d5bd4b7271e394e95ad51dbb4a8c968e405cd95
|
|
BLAKE2b-256 checksum How to use checksums |
14a86b08ad84b12af655227583663b6414686c5ccb49f9f764e491c5f15fbd57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|