semvec/pypi-packages huggingface dataset:
lemai-sdk 0.1.2
Multi-provider AI chat SDK (OpenAI, Gemini, Custom)
License: MIT
Requires Python: >=3.7

# LemAI SDK ![PyPI version](https://img.shields.io/pypi/v/lemai-ask)

A simple and flexible Python SDK for working with multiple AI providers like OpenAI, Gemini, or any custom LLM.

## Installation

```bash
pip install lemai-sdk
```

## Usage

### 🧠 For ChatGPT (OpenAI)

```python
from lemai_sdk import AIClient

client = AIClient(provider="openai", api_key="your_openai_key")
response = client.chat("Tell me a joke")
print(response)
```

### 🔮 For Gemini

```python
from lemai_sdk import AIClient

client = AIClient(provider="gemini", api_key="your_gemini_api_key_here")
response = client.chat("Explain relativity in simple terms.")
print(response)
```

You can also use `GEMINI_API_KEY`, `OPENAI_API_KEY`, etc., in your environment variables.

### 🔌 For Custom Provider

```python
from lemai_sdk import AIClient

client = AIClient(
    provider="custom",
    api_key="your_custom_key_here",
    base_url="http://your-custom-llm.com/api/chat"
)
response = client.chat("What's the weather like today?")
print(response)
```

## ✅ Supported Providers
- OpenAI
- Gemini
- Custom (pass your own `base_url` and API key)