cinob/dsh-plugin-custom-provider-enhancer ↗★ 2

dsh-plugin-custom-provider-enhancer

自动发现自定义服务商的模型及参数配置 适合需要快速接入第三方API并自动填充上下文等元数据的用户。

套件
dsh-plugin-custom-provider-enhancer
相容性
待驗證
Harness 依賴範圍
*
Cordis 依賴範圍
*
版本
1.0.0
授權
MIT
最近更新
2026年8月25日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cinob/dsh-plugin-custom-provider-enhancer

⚙️ Configuration

Optional configuration in $DSH_HOME/profiles/web/cordis.patch.yml:

- id: custom-provider-enhancer
  config:
    # Remote LiteLLM metadata catalog URL
    metadataUrl: https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json
    # Remote OpenRouter official model metadata URL
    openrouterMetadataUrl: https://openrouter.ai/api/v1/models
    # Request timeout in milliseconds (default: 6000ms)
    timeoutMs: 6000
    # In-memory cache TTL in milliseconds (default: 1 hour)
    cacheTtlMs: 3600000
    # Fallback context window when model is unknown (default: 128000)
    defaultContextWindow: 128000
    # Fallback max output tokens (default: 4096)
    defaultMaxTokens: 4096