rust_llm
A 1:1 Rust port of RubyLLM 2.0: one API for chat, tools, agents, structured output, streaming, embeddings, images, audio (speech and transcription), video, moderation, OCR, rerank, tokenization, batches, files, MCP (with OAuth), prompt templates, instrumentation, and judgments across OpenAI, Anthropic, Gemini, DeepSeek, Mistral, OpenRouter, xAI, Perplexity, Ollama, Ollama Cloud, GPUStack, Hetzner, and TypeSafe. Request bodies match the ones RubyLLM recorded, byte for byte as JSON.
# async
- Guides: https://github.com/cole-robertson/rust-llm/tree/main/docs
- API docs: https://docs.rs/rust_llm
- Persistence for Loco/SeaORM:
rust_llm_loco - Generators:
rust_llm_cli
MIT licensed. RustLLM is a port of Carmine Paolino's RubyLLM; see LICENSE.