any-llm  by mozilla-ai

Unified interface for LLM providers

Created 2 months ago
976 stars

Top 37.9% 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

12 hours ago

Responsiveness

Inactive

Pull Requests (30d)
107
Issues (30d)
114
Star History
98 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.