maitai-python


Namemaitai-python JSON
Version 1.2.27 PyPI version JSON
download
home_pagehttps://docs.trymaitai.ai
SummaryMaitai SDK for Python
upload_time2025-07-19 23:43:28
maintainerNone
docs_urlNone
authorMaitai
requires_pythonNone
licenseMIT
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/37/22/954c2b252d759935947c25fa1dabe92c3fc58b8d5662b0e44003c056ed69/maitai_python-1.2.27.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.27",
    "project_urls": {
        "Homepage": "https://docs.trymaitai.ai"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "99216ebdbf80aa3f2ff323de96b38a84fc84a23b54b0dd8f92b22b4b127cc157",
                "md5": "6a156a0346afb47fe2981915e2afc3b7",
                "sha256": "56447969ad1fbe456f71c7fcdd88e2a7f5ba5b28be41f3c76bb97043e6acad6d"
            },
            "downloads": -1,
            "filename": "maitai_python-1.2.27-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6a156a0346afb47fe2981915e2afc3b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 33446,
            "upload_time": "2025-07-19T23:43:26",
            "upload_time_iso_8601": "2025-07-19T23:43:26.762197Z",
            "url": "https://files.pythonhosted.org/packages/99/21/6ebdbf80aa3f2ff323de96b38a84fc84a23b54b0dd8f92b22b4b127cc157/maitai_python-1.2.27-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3722954c2b252d759935947c25fa1dabe92c3fc58b8d5662b0e44003c056ed69",
                "md5": "5cfa026632a03682169e94721d913339",
                "sha256": "d51a9e37f95014fc63b3b1e5eed1172661a51eb40c74ad35610b0be2bde799e4"
            },
            "downloads": -1,
            "filename": "maitai_python-1.2.27.tar.gz",
            "has_sig": false,
            "md5_digest": "5cfa026632a03682169e94721d913339",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 24853,
            "upload_time": "2025-07-19T23:43:28",
            "upload_time_iso_8601": "2025-07-19T23:43:28.330284Z",
            "url": "https://files.pythonhosted.org/packages/37/22/954c2b252d759935947c25fa1dabe92c3fc58b8d5662b0e44003c056ed69/maitai_python-1.2.27.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-19 23:43:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "maitai-python"
}
        
Elapsed time: 2.95274s