A unified interface for working with different AI language model providers
Project description
█████╗ ██╗ ███████╗██████╗ ██╗ ██╗
██╔══██╗██║ ██╔════╝██╔══██╗██║ ██╔╝
███████║██║ ███████╗██║ ██║█████╔╝
██╔══██║██║ ╚════██║██║ ██║██╔═██╗
██║ ██║██║ ███████║██████╔╝██║ ██╗
╚═╝ ╚═╝╚═╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝
AI SDK
A unified interface for working with different AI language model providers. Built with clean architecture and support for many providers
Installation
pip install ai-sdk-py
Quick Start
from ai_sdk import generate_text
from ai_sdk.openai import openai
# Generate text
response = generate_text(
model=openai("gpt-4o"),
system="You are a helpful assistant.",
prompt="What is the meaning of life?"
)
print(response.text)
Features
- 🤖 Unified interface for multiple AI providers
- 🌟 Clean, modular architecture
- 🚀 Easy to extend with new providers
- 🛠️ Built-in support for function calling and tools
- 🖼️ Image generation and analysis capabilities
- 📋 Structured output generation with type validation
Supported Providers
- Anthropic (Claude)
- OpenAI (GPT-4, GPT-3.5)
- More coming soon!
Contributing
Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.
License
MIT License - see LICENSE for details.
Authors
Created and maintained by @jverre.
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
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 ai_sdk_py-0.1.11.tar.gz.
File metadata
- Download URL: ai_sdk_py-0.1.11.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c022cbf2c72d525312f20ac43923875f9cd59d3572f90df1a2ec1773a15483
|
|
| MD5 |
37f212460b05e610efd6a01650b73e86
|
|
| BLAKE2b-256 |
c4f499e841e39426318d3747a20f620cae6558a3c0e3dc5137beccfb771af5d8
|
File details
Details for the file ai_sdk_py-0.1.11-py3-none-any.whl.
File metadata
- Download URL: ai_sdk_py-0.1.11-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffa23445f155c4040e66eedb7d371d4107c59faf1adf177b8f0c470d2e9ae49f
|
|
| MD5 |
203ae43cd4a03b863ce3ac69da9255c6
|
|
| BLAKE2b-256 |
d139fd6a359b75c70e98b8c145dfe3402d3fd338c70f678ef9a740940df334bb
|