{"id":24373333,"url":"https://github.com/graniet/rllm","last_synced_at":"2025-10-23T02:46:03.001Z","repository":{"id":271054985,"uuid":"912286500","full_name":"graniet/rllm","owner":"graniet","description":"Use multiple LLM backends in a single crate, simple builder-based configuration, and built-in prompt chaining \u0026 templating.","archived":false,"fork":false,"pushed_at":"2025-02-26T18:56:32.000Z","size":239,"stargazers_count":112,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T10:01:41.411Z","etag":null,"topics":["ai","anthropic","builder-pattern","chatbot","llm","nlp","ollama","openai","prompt-engineering","rust","rust-crate","rust-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graniet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-05T06:06:04.000Z","updated_at":"2025-03-23T07:57:12.000Z","dependencies_parsed_at":"2025-01-05T06:19:10.213Z","dependency_job_id":"c1c6e4ed-f7ea-44bc-92a8-6d0518134d24","html_url":"https://github.com/graniet/rllm","commit_stats":null,"previous_names":["graniet/rllm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graniet%2Frllm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graniet%2Frllm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graniet%2Frllm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graniet%2Frllm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graniet","download_url":"https://codeload.github.com/graniet/rllm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247159507,"owners_count":20893630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","anthropic","builder-pattern","chatbot","llm","nlp","ollama","openai","prompt-engineering","rust","rust-crate","rust-library"],"created_at":"2025-01-19T05:10:47.545Z","updated_at":"2025-10-23T02:46:02.996Z","avatar_url":"https://github.com/graniet.png","language":"Rust","funding_links":[],"categories":["Rust","\u003ca name=\"Rust\"\u003e\u003c/a\u003eRust"],"sub_categories":[],"readme":"# RLLM\n\n\u003e Note: Starting with version 1.x, RLLM has become a simple wrapper around [llm](https://github.com/graniet/llm).\n\u003e Both crates will be actively maintained and kept in sync.\n\u003e If you are new to this ecosystem, you can use either [llm](https://github.com/graniet/llm) directly or rllm - they provide the same features.\n\n**RLLM** is a **Rust** library that lets you use **multiple LLM backends** in a single project:  [OpenAI](https://openai.com), [Anthropic (Claude)](https://www.anthropic.com), [Ollama](https://github.com/ollama/ollama), [DeepSeek](https://www.deepseek.com), [xAI](https://x.ai), [Phind](https://www.phind.com), [Groq](https://www.groq.com) and [Google](https://cloud.google.com/gemini).\nWith a **unified API** and **builder style** - similar to the Stripe experience - you can easily create **chat** or text **completion** requests without multiplying structures and crates.\n\n### Base crate is :  [LLM](https://github.com/graniet/llm) \n\n## Key Features\n\n- **Multi-backend**: Manage OpenAI, Anthropic, Ollama, DeepSeek, xAI, Phind, Groq and Google through a single entry point.\n- **Multi-step chains**: Create multi-step chains with different backends at each step.\n- **Templates**: Use templates to create complex prompts with variables.\n- **Builder pattern**: Configure your LLM (model, temperature, max_tokens, timeouts...) with a few simple calls.\n- **Chat \u0026 Completions**: Two unified traits (`ChatProvider` and `CompletionProvider`) to cover most use cases.\n- **Extensible**: Easily add new backends.\n- **Rust-friendly**: Designed with clear traits, unified error handling, and conditional compilation via *features*.\n- **Validation**: Add validation to your requests to ensure the output is what you expect.\n- **Evaluation**: Add evaluation to your requests to score the output of LLMs.\n- **Parallel Evaluation**: Evaluate multiple LLM providers in parallel and select the best response based on scoring functions.\n- **Function calling**: Add function calling to your requests to use tools in your LLMs.\n- **REST API**: Serve any LLM backend as a REST API with openai standard format.\n- **Vision**: Add vision to your requests to use images in your LLMs.\n- **Reasoning**: Add reasoning to your requests to use reasoning in your LLMs.\n- **Structured Output**: Request structured output from certain LLM providers based on a provided JSON schema.\n- **Speech to text**: Transcribe audio to text\n\n## Examples\n\nGo to [LLM Examples](https://github.com/graniet/llm/tree/main/examples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraniet%2Frllm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraniet%2Frllm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraniet%2Frllm/lists"}