divyanshitripathi127-blip

divyanshitripathi127-blip starred recently!

wrapper

The unified Python library for LLM providers

Switch between OpenAI, Ollama, Azure, AWS, and more with a single line of code. Built for open source, by open source.

Note: Library name acquisition is in progress for pypi release. Meanwhile, use the installation method shown below.

# Installation
git clone https://github.com/anubhavgirdhar1/wrapper
cd wrapper
pip install -e .

# Usage
from wrapper import Wrapper

# Switch providers with one line
client = Wrapper("openai"|)

print(client.generate(
    model='gpt-4'|,
    prompt='Write an essay on hamsters',
    stream=True
))

Supported Providers

OpenAI

OpenAI

Anthropic

Anthropic

AWS

AWS

Groq

Groq

Azure

Azure

Ollama

Ollama

Built for flexibility

Everything you need to work with any LLM provider

One Line Switch

Change LLM providers instantly without refactoring your codebase. True flexibility at your fingertips.

Rapid Prototyping

Hassle-free setup gets you from idea to implementation in minutes. Built for developers who move fast.

Open Source

Built by the community, for the community. Contribute, customize, and make it yours.

Coming Soon

WIP

More 3rd Party Providers

Expanding support for additional LLM providers to give you even more flexibility and choice.

WIP

Multi-Modality Support

Handle text, images, audio, and video seamlessly across different AI models and providers.

WIP

Embedding Model Support

Unified interface for embedding models across providers, perfect for RAG and semantic search.

Contributors & Activity

Amazing people who make this project possible

Built for open source, via open source

Join our community of developers making LLM integration simpler for everyone. Every contribution matters.