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

Installation

pip install ai-sdk

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

genaix-0.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

genaix-0.1.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file genaix-0.1.0.tar.gz.

File metadata

  • Download URL: genaix-0.1.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Darwin/24.3.0

File hashes

Hashes for genaix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 edf7bd90916326fc6dcf9c700f0837584600b48ca3d8088452edaaa6b2e48a1d
MD5 91268c1d1b90c572fbe1187211dbf8f2
BLAKE2b-256 ac6c57cd6795684613bad03872cc27904f9de49d1f9fbd6b3709898ec0c84871

See more details on using hashes here.

File details

Details for the file genaix-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: genaix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Darwin/24.3.0

File hashes

Hashes for genaix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b18c3bca47ecaa78c6619716c247c30f8221ede28949c514aedf8c81303aeeb
MD5 3434c13159de494c2de1c1fb16c8d0dc
BLAKE2b-256 501e2e7a0fbe5c6761c5f9a04a5da0c1e5123e6823607306458fd6a3b8daf29f

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