cinob/dsh-plugin-custom-provider-enhancer0

dsh-plugin-custom-provider-enhancer

DeepSeek Harness 插件,通过从 models.dev 自动发现模型并自动填充上下文窗口、最大 Token、视觉和推理能力,来增强自定义供应商的设置。

AI 分析

核心用途是简化 DSH 自定义模型供应商的配置流程。适合需要频繁添加或管理第三方 API 供应商,并希望自动获取模型元数据的用户。

包名
dsh-plugin-custom-provider-enhancer
版本
1.0.0
许可证
MIT
最近更新
2026年8月15日

安装

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

⚙️ Configuration

Optional configuration in your cordis.yml or cordis.patch.yml:

plugins:
  custom-provider-enhancer:
    # Remote metadata catalog URL
    metadataUrl: https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json
    # Request timeout in milliseconds (default: 5000ms)
    timeoutMs: 5000
    # 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