userofthecomputer/dsh-openrouter-provider-badge ↗★ 0
@dsh-external/dsh-openrouter-provider-badge
在每条会话轮次的统计行上方显示 OpenRouter 实际供应商(StreamLake 等)与通道模型。纯客户端插件,无服务端依赖。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:userofthecomputer/dsh-openrouter-provider-badge说明文档
阅读完整 README ↗3. 配置请求头
编辑 ~/.dsh/settings.yaml(Windows: C:\Users\\.dsh\settings.yaml),给 openrouter provider 加:
llm-pi-ai:
providers:
openrouter:
apiKeyEnv: OPENROUTER_API_KEY
headers:
X-OpenRouter-Metadata: enabled
models:
- id: deepseek/deepseek-v4-flash-0731
name: "DeepSeek: DeepSeek V4 Flash 0731"
contextWindow: 1048576
maxTokens: 384000
reasoningEfforts:
off: null
low: low
high: high
max: max
compat:
openRouterRouting:
quantizations: [bf16, fp8]
sort: price
allow_fallbacks: true
compat.openRouterRouting 是可选项(配合补丁生效):
quantizations: [bf16, fp8]—— 排除 fp4 量化供应商sort: price—— 在允许的供应商里选最便宜allow_fallbacks: true—— 首选失败时回退