divyanshitripathi127-blip starred recently!
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
Anthropic
AWS
Groq
Azure
Ollama
Everything you need to work with any LLM provider
Change LLM providers instantly without refactoring your codebase. True flexibility at your fingertips.
Hassle-free setup gets you from idea to implementation in minutes. Built for developers who move fast.
Built by the community, for the community. Contribute, customize, and make it yours.
Expanding support for additional LLM providers to give you even more flexibility and choice.
Handle text, images, audio, and video seamlessly across different AI models and providers.
Unified interface for embedding models across providers, perfect for RAG and semantic search.
Amazing people who make this project possible
Join our community of developers making LLM integration simpler for everyone. Every contribution matters.