any-llm  by mozilla-ai

Unified interface for LLM providers

created 2 weeks ago

New!

733 stars

Top 48.2% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

any-llm provides a unified Python interface for interacting with various Large Language Model (LLM) providers, simplifying development for users who need to switch between or combine different LLM services. It targets developers building applications that leverage LLMs, offering a consistent API that abstracts away provider-specific differences.

How It Works

any-llm leverages official provider SDKs where available, aiming for better compatibility and reduced maintenance compared to reimplementing interfaces. It provides a single completion function that accepts a provider-specific model string (e.g., "mistral/mistral-small-latest"), allowing seamless switching between LLM backends. This approach minimizes the need for custom integration code and avoids the overhead of proxy servers.

Quick Start & Requirements

Highlighted Details

  • Unified interface abstracts provider variations.
  • Utilizes official SDKs for robustness.
  • Framework-agnostic design.
  • Actively maintained and used in the any-agent product.

Maintenance & Community

The project is actively maintained by Mozilla AI. Further community engagement details are not explicitly provided in the README.

Licensing & Compatibility

The project appears to be licensed under the Apache 2.0 license, which is permissive and generally compatible with commercial and closed-source use.

Limitations & Caveats

Users must consult individual provider documentation for available model IDs. The README does not detail specific LLM providers supported beyond examples like Mistral and Ollama, nor does it provide performance benchmarks.

Health Check
Last commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
33
Issues (30d)
23
Star History
758 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
15 more.

litellm by BerriAI

1.9%
27k
SDK/proxy for calling 100+ LLM APIs using the OpenAI format
created 2 years ago
updated 19 hours ago
Feedback? Help us improve.