Name | maitai-python JSON |
Version |
1.2.8
JSON |
| download |
home_page | https://docs.trymaitai.ai |
Summary | Maitai SDK for Python |
upload_time | 2025-01-22 21:45:59 |
maintainer | None |
docs_url | None |
author | Maitai |
requires_python | None |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Quickstart
Full docs can be found at https://docs.trymaitai.ai
## Installation
Install the Maitai SDK:
```bash
pip install maitai-python
```
## Implementation
Implementing Maitai into your application requires minimal code changes.
```python
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.ai and watch Maitai learn your application in real time.
Raw data
{
"_id": null,
"home_page": "https://docs.trymaitai.ai",
"name": "maitai-python",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Maitai",
"author_email": "support@trymaitai.ai",
"download_url": "https://files.pythonhosted.org/packages/f5/fc/87f025533cc324fd1f78bdad5210afc9fe83475d5246c6625d9ed474e40c/maitai_python-1.2.8.tar.gz",
"platform": null,
"description": "# Quickstart\n\nFull docs can be found at https://docs.trymaitai.ai\n\n## Installation\n\nInstall the Maitai SDK:\n\n```bash\npip install maitai-python\n```\n\n## Implementation\n\nImplementing Maitai into your application requires minimal code changes.\n\n```python\nimport maitai\n\nmessages = [\n {\"role\": \"system\", \"content\": \"You are a helpful ordering assistant...\"},\n {\"role\": \"user\", \"content\": \"Generate a response to the customer...\"},\n]\n\nresponse = maitai.chat.completions.create(\n messages=messages,\n model=\"llama3-70b-8192\", ## Remove this line to set model in Portal\n session_id=\"YOUR_SESSION_ID\",\n intent=\"CONVERSATION\",\n application=\"YOUR_APPLICATION_NAME\",\n)\n```\n\n**Note**\nMaitai requires `openai` version `1.30.1` or later. If you are using an older version, please upgrade.\n\n## Run Your Application\n\nRun your application, make sure it makes at least one Chat Completion Request, then head over\nto https://portal.trymaitai.ai and watch Maitai learn your application in real time.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Maitai SDK for Python",
"version": "1.2.8",
"project_urls": {
"Homepage": "https://docs.trymaitai.ai"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "32970410ac0759b83d7d35499a591492ffd95f832e456dc1da22ed76d0afa74d",
"md5": "b4f638b92b8760505d8d5d5b45baaa0b",
"sha256": "324e2e6a8314e3d061704b6fbb38d1bfbf773f2f5bf9ca136df0155efe70c84e"
},
"downloads": -1,
"filename": "maitai_python-1.2.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b4f638b92b8760505d8d5d5b45baaa0b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 39476,
"upload_time": "2025-01-22T21:45:57",
"upload_time_iso_8601": "2025-01-22T21:45:57.421506Z",
"url": "https://files.pythonhosted.org/packages/32/97/0410ac0759b83d7d35499a591492ffd95f832e456dc1da22ed76d0afa74d/maitai_python-1.2.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f5fc87f025533cc324fd1f78bdad5210afc9fe83475d5246c6625d9ed474e40c",
"md5": "efbbf7dd7bce9d07464b17772c34a114",
"sha256": "9c591bcd84cb97674a65638dabc502a00bc53a7ae14e5f06f4e50ce0fa5a2e51"
},
"downloads": -1,
"filename": "maitai_python-1.2.8.tar.gz",
"has_sig": false,
"md5_digest": "efbbf7dd7bce9d07464b17772c34a114",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 28113,
"upload_time": "2025-01-22T21:45:59",
"upload_time_iso_8601": "2025-01-22T21:45:59.828935Z",
"url": "https://files.pythonhosted.org/packages/f5/fc/87f025533cc324fd1f78bdad5210afc9fe83475d5246c6625d9ed474e40c/maitai_python-1.2.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-22 21:45:59",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "maitai-python"
}