Name | maitai-python JSON |
Version |
1.1.40
JSON |
| download |
home_page | https://docs.trymaitai.ai |
Summary | Maitai SDK for Python |
upload_time | 2024-11-12 17:48:21 |
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/fc/e9/93a6182f8c24f8774ad4dfcde1f25533364f2b80e2f4693b86e0bda6db80/maitai_python-1.1.40.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.1.40",
"project_urls": {
"Homepage": "https://docs.trymaitai.ai"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "47f0612f09e3810a86fa401700518a8a256cc253e4db7844fd1e160a911cd88b",
"md5": "474151b0cd1bfc5ae764b28bd198bb54",
"sha256": "eb2deb5a569deb2d536e5637a74ddffc5d8ed9abe33cc0fd57a2e92c71880a0b"
},
"downloads": -1,
"filename": "maitai_python-1.1.40-py3-none-any.whl",
"has_sig": false,
"md5_digest": "474151b0cd1bfc5ae764b28bd198bb54",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 44771,
"upload_time": "2024-11-12T17:48:20",
"upload_time_iso_8601": "2024-11-12T17:48:20.392796Z",
"url": "https://files.pythonhosted.org/packages/47/f0/612f09e3810a86fa401700518a8a256cc253e4db7844fd1e160a911cd88b/maitai_python-1.1.40-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fce993a6182f8c24f8774ad4dfcde1f25533364f2b80e2f4693b86e0bda6db80",
"md5": "bd53b59eeeb76ecd08c6d047c6e5f1f6",
"sha256": "2c2793af999389d9041cb98c17cbc93b40260cfac9cad778f8695f1a731b6de2"
},
"downloads": -1,
"filename": "maitai_python-1.1.40.tar.gz",
"has_sig": false,
"md5_digest": "bd53b59eeeb76ecd08c6d047c6e5f1f6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29231,
"upload_time": "2024-11-12T17:48:21",
"upload_time_iso_8601": "2024-11-12T17:48:21.737540Z",
"url": "https://files.pythonhosted.org/packages/fc/e9/93a6182f8c24f8774ad4dfcde1f25533364f2b80e2f4693b86e0bda6db80/maitai_python-1.1.40.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-12 17:48:21",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "maitai-python"
}