provider-architecture

Community

Unified LLM gateway with multi-provider routing.

Authormajiayu000
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill addresses the challenge of integrating 66+ LLM providers behind a single, trait-object based LLMProvider interface, enabling scalable routing, consistent error handling, and maintainable architecture in Rust gateways.

Core Features & Use Cases

  • Unified provider abstraction for plug-and-play LLMs, including OpenAI-compatible APIs and alternative providers.
  • High-performance gateway routing with a single connection pool, deterministic request handling, and centralized cost/health management.
  • Use Case: Deploy a gateway that routes user requests to multiple providers (OpenAI, Azure, Google Vertex) based on model name, with fallbacks and cost-aware routing.

Quick Start

Start by implementing the LLMProvider trait for a provider, configure via environment variables, then initialize the provider and register it with the gateway router. Use a single GlobalPoolManager for HTTP calls and expose model information through the static registry. Run the gateway with the provider configuration loaded from env vars (e.g., OPENAI_API_KEY, AZURE_OPENAI_API_KEY, etc.).

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: provider-architecture
Download link: https://github.com/majiayu000/litellm-rs/archive/main.zip#provider-architecture

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.