AI Skill Hub 强烈推荐:高性能AI网关 是一款优质的AI工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
高性能AI网关,支持100+LLM API调用
高性能AI网关 是一款基于 Rust 开发的开源工具,专注于 ai-gateway、async-rust、api-client 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
高性能AI网关,支持100+LLM API调用
高性能AI网关 是一款基于 Rust 开发的开源工具,专注于 ai-gateway、async-rust、api-client 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:cargo install(推荐) cargo install litellm-rs # 方式二:从源码编译 git clone https://github.com/majiayu000/litellm-rs cd litellm-rs cargo build --release # 二进制在 ./target/release/litellm-rs
# 查看帮助 litellm-rs --help # 基本运行 litellm-rs [options] <input> # 详细使用说明请查阅文档 # https://github.com/majiayu000/litellm-rs
# litellm-rs 配置说明 # 查看配置选项 litellm-rs --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export LITELLM_RS_CONFIG="/path/to/config.yml"
A high-performance Rust library and gateway for calling LLM APIs in an OpenAI-compatible format. Ships with 50+ built-in OpenAI-compatible providers plus first-class adapters for OpenAI, Anthropic, AWS Bedrock, Mistral, and Cloudflare.
```toml
cargo test --lib --tests --no-default-features --features "lite"CARGO_BUILD_JOBS=4 cargo test --lib --tests --no-default-features --features "lite" -- --test-threads=4--all-features unless you are doing release/nightly validationMost users use this project as a unified API library, not as a gateway server. Start with API-only mode first.
[dependencies]
litellm-rs = { version = "0.5", default-features = false, features = ["lite"] }
For crate users, no make is required.
```bash
LITELLM_VERBOSE=true # Enable verbose logging ```
use litellm_rs::{completion, user_message, system_message};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = completion(
"gpt-4",
vec![
system_message("You are a helpful assistant."),
user_message("Hello!"),
],
None,
).await?;
println!("{}", response.choices[0].message.content.as_ref().unwrap());
Ok(())
}
[dependencies] litellm-rs = { version = "0.5", default-features = false }
[dependencies] litellm-rs = { version = "0.5", default-features = false, features = ["lite"] }
OPENAI_API_KEY=sk-... ANTHROPIC_API_KEY=sk-ant-... GOOGLE_API_KEY=... AZURE_OPENAI_API_KEY=... AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=... AWS_REGION=us-east-1 GROQ_API_KEY=... DEEPSEEK_API_KEY=... MOONSHOT_API_KEY=... ZHIPU_API_KEY=... MINIMAX_API_KEY=...
default-features = false with features = ["lite"][dependencies] litellm-rs = { version = "0.5", default-features = false, features = ["gateway"] } ```
The following modules exist under src/core/providers/ (gated on providers-extra or providers-extended) but are not wired into the unified Provider enum or the factory today. They compile but cannot be selected through create_provider/from_config_async. Treat them as experimental scaffolding subject to change:
ai21, baseten, clarifai, codestral, cohere, custom_api, databricks, datarobot, deepgram, deepl, elevenlabs, empower, exa_ai, firecrawl, gemini, gigachat, google_pse, gradient_ai, huggingface, jina, langgraph, manus, milvus, morph, nlp_cloud, oci, ollama, petals, pg_vector, predibase, ragflow, recraft, runwayml, sagemaker, sap_ai, searxng, snowflake, spark, stability, tavily, topaz, triton, vercel_ai, voyage, watsonx
For self-hosted or unlisted OpenAI-compatible endpoints, prefer the generic openai_compatible provider type instead.
高性能AI网关,支持多个LLM API调用,值得关注
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,高性能AI网关 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | litellm-rs |
| Topics | ai-gatewayasync-rustapi-client |
| GitHub | https://github.com/majiayu000/litellm-rs |
| License | MIT |
| 语言 | Rust |
收录时间:2026-06-06 · 更新时间:2026-06-06 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。