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

dsh-plugin-custom-provider-enhancer

DeepSeek Harness plugin that enhances custom provider setup by auto-discovering models and auto-populating contextWindow, maxTokens, vision, and reasoning capabilities from models.dev 适合需要快速接入第三方API并自动填充上下文等元数据的用户。

Package
dsh-plugin-custom-provider-enhancer
Compatibility
Unverified
Harness peer range
*
Cordis peer range
*
Version
1.0.0
License
MIT
Last updated
Aug 25, 2026

Install

$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