Multi-provider AI chat SDK (OpenAI, Gemini, Custom)
Project description
LemAI SDK 
A simple and flexible Python SDK for working with multiple AI providers like OpenAI, Gemini, or any custom LLM.
Installation
pip install lemai-sdk
Usage
🧠 For ChatGPT (OpenAI)
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
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
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_urland API key)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lemai_sdk-0.1.2.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lemai_sdk-0.1.2.tar.gz.
File metadata
- Download URL: lemai_sdk-0.1.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a57a73cc37d1028e45e8f6866cf032ce3a147858587785918c174f5e050af379
|
|
| MD5 |
e58efb070fdd36ca99eb0ab4f686dcf8
|
|
| BLAKE2b-256 |
6de449c80a8702d31e525949c0aebc0a98c7ed935af315604d404858146d0ce0
|
File details
Details for the file lemai_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: lemai_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f73709ee43e96471938456e73400b88be16d69d11712a1f145e7aff96b5f423
|
|
| MD5 |
8fbe48c1e2a0c86c369b200cbee2d81a
|
|
| BLAKE2b-256 |
39e5c3cc65c5f600e45db19957a5567e5ca8cc302d33d3e00425ff778c11e797
|