Skip to content
/ ai-sdk Public

Python port of the Vercel AI SDK - Allows you to call multiple providers in a single "generate_text" method

License

Notifications You must be signed in to change notification settings

jverre/ai-sdk

Repository files navigation

 █████╗ ██╗    ███████╗██████╗ ██╗  ██╗
██╔══██╗██║    ██╔════╝██╔══██╗██║ ██╔╝
███████║██║    ███████╗██║  ██║█████╔╝ 
██╔══██║██║    ╚════██║██║  ██║██╔═██╗ 
██║  ██║██║    ███████║██████╔╝██║  ██╗
╚═╝  ╚═╝╚═╝    ╚══════╝╚═════╝ ╚═╝  ╚═╝

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.

About

Python port of the Vercel AI SDK - Allows you to call multiple providers in a single "generate_text" method

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages