Skip to main content

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

📚 View the full documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_sdk_py-0.1.11.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_sdk_py-0.1.11-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

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

Hashes for ai_sdk_py-0.1.11.tar.gz
Algorithm Hash digest
SHA256 51c022cbf2c72d525312f20ac43923875f9cd59d3572f90df1a2ec1773a15483
MD5 37f212460b05e610efd6a01650b73e86
BLAKE2b-256 c4f499e841e39426318d3747a20f620cae6558a3c0e3dc5137beccfb771af5d8

See more details on using hashes here.

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

Hashes for ai_sdk_py-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa23445f155c4040e66eedb7d371d4107c59faf1adf177b8f0c470d2e9ae49f
MD5 203ae43cd4a03b863ce3ac69da9255c6
BLAKE2b-256 d139fd6a359b75c70e98b8c145dfe3402d3fd338c70f678ef9a740940df334bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page