@arcships/dsh-llm-aimux
基于 aimux 引擎的 DSH LLM 适配器插件,通过单一 Rust 引擎支持 325+ 服务商的模型路由。
AI 分析
核心用于极大地扩展 DSH 支持的模型供应商范围。适合需要调用各种小众或特定平台 API、希望统一管理路由的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:arcships/dsh-llm-aimux说明文档
阅读完整 README ↗Configuration
Routes are keyed by dsh provider id; each maps to one aimux provider. The
composition entry below is only the base layer — users add or edit routes
through their settings (web Models page → provider card, or the llm-aimux:
section in settings.yaml) and changes apply without a restart:
- insert:
- id: llm-aimux
name: '@arcships/dsh-llm-aimux'
config:
providers:
deepseek: # dsh route id
provider: deepseek # aimux provider name (default: the route id)
apiKeyEnv: DEEPSEEK_API_KEY # credential ref (default:
_API_KEY)
kimi:
provider: moonshot # credential ref derives as MOONSHOT_API_KEY
groq:
displayName: Groq
The same shape works in the user settings layer:
llm-aimux:
streamIdleTimeoutMs: 300000 # chunk-idle watchdog relayed to aimux
providers:
groq: {}
relay: # endpoint override through a gateway/relay
provider: deepseek
baseUrl: https://relay.example/v1
headers:
X-Org: acme
provider— an aimux provider name. aimux ships 325+ (251 of them OpenAI-compatible registry entries); see the aimux provider docs.- Every route appears as a configurable provider on the Models page
(
ctx.llm.registerConfigurableProviders, addressed atllm-aimux.providers.); added or removed routes swap atomically. - Credentials resolve through the harness
ctx.credentialsseam when mounted; otherwise aimux falls back to the provider's own env var. Resolution is per-request, so a rotated key reaches the next call.