maitai-python


Namemaitai-python JSON
Version 1.1.23 PyPI version JSON
download
home_pagehttps://docs.trymaitai.ai
SummaryMaitai SDK for Python
upload_time2024-09-05 21:19:33
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/49/dc/39fb402628d87590846e6a7788cdf6b26091861fa80b320e5bf3683a658e/maitai_python-1.1.23.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.23",
    "project_urls": {
        "Homepage": "https://docs.trymaitai.ai"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b5c4ef0334e8d04dc0f3d96a82aaf2acd9d7be00cf1fbedf9f4395af74bbc85",
                "md5": "46c119e3fc98f0f1fabdfdfcbf8da32c",
                "sha256": "130c9d489bcd9594e2a9b873b954c8a24cc968a29dcd5d5c1109d1e23c857c54"
            },
            "downloads": -1,
            "filename": "maitai_python-1.1.23-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "46c119e3fc98f0f1fabdfdfcbf8da32c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 43008,
            "upload_time": "2024-09-05T21:19:32",
            "upload_time_iso_8601": "2024-09-05T21:19:32.172395Z",
            "url": "https://files.pythonhosted.org/packages/9b/5c/4ef0334e8d04dc0f3d96a82aaf2acd9d7be00cf1fbedf9f4395af74bbc85/maitai_python-1.1.23-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "49dc39fb402628d87590846e6a7788cdf6b26091861fa80b320e5bf3683a658e",
                "md5": "615ee5a92f1c69ad67bfda0ec91839a4",
                "sha256": "531413ffa0a4c9321ec6371426b8e629934086aa3cadb461850b925231f71375"
            },
            "downloads": -1,
            "filename": "maitai_python-1.1.23.tar.gz",
            "has_sig": false,
            "md5_digest": "615ee5a92f1c69ad67bfda0ec91839a4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 27103,
            "upload_time": "2024-09-05T21:19:33",
            "upload_time_iso_8601": "2024-09-05T21:19:33.952944Z",
            "url": "https://files.pythonhosted.org/packages/49/dc/39fb402628d87590846e6a7788cdf6b26091861fa80b320e5bf3683a658e/maitai_python-1.1.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-05 21:19:33",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "maitai-python"
}
        
Elapsed time: 0.42726s