any-llm  by mozilla-ai

Unified interface for LLM providers

Created 6 months ago
1,548 stars

Top 26.6% on SourcePulse

GitHubView on GitHub
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

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
50
Issues (30d)
23
Star History
55 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and David Cramer David Cramer(Cofounder of Sentry).

llmgateway by theopenco

1.6%
791
LLM API gateway for unified provider access
Created 9 months ago
Updated 16 hours ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Ishaan Jaffer Ishaan Jaffer(Cofounder of LiteLLM), and
10 more.

llama-stack by llamastack

0.2%
8k
Composable building blocks for Llama apps
Created 1 year ago
Updated 1 day ago
Feedback? Help us improve.