lexa-sdk


Namelexa-sdk JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryPython SDK for Lexa AI - OpenAI-compatible interface for Lexa's language models
upload_time2025-08-31 16:19:00
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords ai api chat completion lexa llm ml
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lexa Python SDK

A Python SDK for Lexa AI that provides an OpenAI-compatible interface for easy integration with Lexa's language models.

## Features

- 🔗 **OpenAI-Compatible**: Drop-in replacement for OpenAI SDK
- 🚀 **Async Support**: Full async/await support for high-performance applications
- 📦 **Type Safety**: Comprehensive type hints and validation
- 🔄 **Streaming**: Real-time streaming responses
- 🛡️ **Error Handling**: Robust error handling with custom exceptions
- 📊 **Multiple Models**: Support for all Lexa models (lexa-mml, lexa-x1, lexa-rho)

## Installation

```bash
pip install lexa-sdk
```

## Quick Start

```python
from lexa_sdk import Lexa

# Initialize the client
client = Lexa(api_key="your-api-key")

# Simple chat completion
response = client.chat.completions.create(
    model="lexa-mml",
    messages=[
        {"role": "user", "content": "Hello! Tell me a joke."}
    ],
    temperature=0.7,
    max_tokens=100
)

print(response["choices"][0]["message"]["content"])
```

## Available Models

| Model | Description | Context Window | Max Tokens |
|-------|-------------|----------------|------------|
| `lexa-mml` | Multimodal model with vision capabilities | 8,192 | 4,096 |
| `lexa-x1` | Fast, lightweight text-based model | 4,096 | 2,048 |
| `lexa-rho` | Reasoning model with enhanced capabilities | 16,384 | 8,192 |

## Documentation

For complete documentation, examples, and API reference, visit [docs.lexa.chat](https://docs.lexa.chat/).

## License

This project is licensed under the MIT License.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lexa-sdk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "ai, api, chat, completion, lexa, llm, ml",
    "author": null,
    "author_email": "Robi Labs <lexa@robiai.com>",
    "download_url": "https://files.pythonhosted.org/packages/01/3f/47313efa0bff836b3ad2ef7f3f474b443e930bcd8c42e7815292c306ef42/lexa_sdk-1.0.0.tar.gz",
    "platform": null,
    "description": "# Lexa Python SDK\n\nA Python SDK for Lexa AI that provides an OpenAI-compatible interface for easy integration with Lexa's language models.\n\n## Features\n\n- \ud83d\udd17 **OpenAI-Compatible**: Drop-in replacement for OpenAI SDK\n- \ud83d\ude80 **Async Support**: Full async/await support for high-performance applications\n- \ud83d\udce6 **Type Safety**: Comprehensive type hints and validation\n- \ud83d\udd04 **Streaming**: Real-time streaming responses\n- \ud83d\udee1\ufe0f **Error Handling**: Robust error handling with custom exceptions\n- \ud83d\udcca **Multiple Models**: Support for all Lexa models (lexa-mml, lexa-x1, lexa-rho)\n\n## Installation\n\n```bash\npip install lexa-sdk\n```\n\n## Quick Start\n\n```python\nfrom lexa_sdk import Lexa\n\n# Initialize the client\nclient = Lexa(api_key=\"your-api-key\")\n\n# Simple chat completion\nresponse = client.chat.completions.create(\n    model=\"lexa-mml\",\n    messages=[\n        {\"role\": \"user\", \"content\": \"Hello! Tell me a joke.\"}\n    ],\n    temperature=0.7,\n    max_tokens=100\n)\n\nprint(response[\"choices\"][0][\"message\"][\"content\"])\n```\n\n## Available Models\n\n| Model | Description | Context Window | Max Tokens |\n|-------|-------------|----------------|------------|\n| `lexa-mml` | Multimodal model with vision capabilities | 8,192 | 4,096 |\n| `lexa-x1` | Fast, lightweight text-based model | 4,096 | 2,048 |\n| `lexa-rho` | Reasoning model with enhanced capabilities | 16,384 | 8,192 |\n\n## Documentation\n\nFor complete documentation, examples, and API reference, visit [docs.lexa.chat](https://docs.lexa.chat/).\n\n## License\n\nThis project is licensed under the MIT License.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python SDK for Lexa AI - OpenAI-compatible interface for Lexa's language models",
    "version": "1.0.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/Robi-Labs/lexa-python-sdk/issues",
        "Documentation": "https://docs.lexa.chat/",
        "Homepage": "https://lexa.chat",
        "Repository": "https://github.com/Robi-Labs/lexa-python-sdk"
    },
    "split_keywords": [
        "ai",
        " api",
        " chat",
        " completion",
        " lexa",
        " llm",
        " ml"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0904c6f0bd00947ca620b58a1de043f0418640e89f717dd75b7e38c2611e091a",
                "md5": "2c14bd1c63a7de7c92314f2aab951891",
                "sha256": "546433e11df9f499030202e71f68930d7287e2e2c407da05cbcb8bf8a0f9d506"
            },
            "downloads": -1,
            "filename": "lexa_sdk-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c14bd1c63a7de7c92314f2aab951891",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13397,
            "upload_time": "2025-08-31T16:18:59",
            "upload_time_iso_8601": "2025-08-31T16:18:59.577079Z",
            "url": "https://files.pythonhosted.org/packages/09/04/c6f0bd00947ca620b58a1de043f0418640e89f717dd75b7e38c2611e091a/lexa_sdk-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "013f47313efa0bff836b3ad2ef7f3f474b443e930bcd8c42e7815292c306ef42",
                "md5": "c0b8bde606673d1b62ab0115f5bf541b",
                "sha256": "22da2930f81dd07b8ae5b4742da5f8b976b0657118d4794eec255017f709586e"
            },
            "downloads": -1,
            "filename": "lexa_sdk-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c0b8bde606673d1b62ab0115f5bf541b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 40508,
            "upload_time": "2025-08-31T16:19:00",
            "upload_time_iso_8601": "2025-08-31T16:19:00.895975Z",
            "url": "https://files.pythonhosted.org/packages/01/3f/47313efa0bff836b3ad2ef7f3f474b443e930bcd8c42e7815292c306ef42/lexa_sdk-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-31 16:19:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Robi-Labs",
    "github_project": "lexa-python-sdk",
    "github_not_found": true,
    "lcname": "lexa-sdk"
}
        
Elapsed time: 1.52959s