Back to directory

LLM

A Rust library and command-line tool that lets an application call OpenAI, Anthropic, Ollama, DeepSeek, Google, Cohere, Mistral, Hugging Face, ElevenLabs and other LLM backends through one unified, builder-style API.

LLM

LLM is a Rust crate (the name previously belonged to an unrelated, now-archived project) that gives a single API surface across many providers: OpenAI, Anthropic, Ollama, DeepSeek, xAI, Phind, Groq, OpenRouter, Cohere, Mistral, Hugging Face and ElevenLabs. Chat and text-completion requests share two traits, ChatProvider and CompletionProvider, and a builder pattern configures model, temperature, max tokens and timeouts.

Beyond basic completions it supports multi-step chains across different backends, prompt templates with variables, request validation, retry with exponential backoff, scoring-based evaluation across providers in parallel, function and tool calling, structured JSON output, vision input, speech-to-text and text-to-speech, and a sliding-window conversation memory. It can also serve any configured backend as a REST API in OpenAI's own format.

More in LLM gateways

See all 106
  • aihappey-ai

    github.com

    A stateless, multi-provider .NET AI gateway exposing normalized OpenAI- and Anthropic-compatible endpoints, managed agents and skills across a very large catalog of models.

  • Unified AI System

    happy520ai.github.io

    A self-hosted, protocol-first AI gateway and agent control plane for OpenAI, Anthropic, Gemini, MCP and A2A, turning a rough request into a structured, reviewable prompt before it runs.

  • Subroute

    github.com

    A local AI gateway and desktop control desk that gives coding tools one steady endpoint, so switching between AI subscriptions, API providers and local models doesn't mean reconfiguring every client.