cinob/dsh-plugin-custom-provider-enhancer ↗★ 2
dsh-plugin-custom-provider-enhancer
自动发现自定义服务商的模型及参数配置 适合需要快速接入第三方API并自动填充上下文等元数据的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cinob/dsh-plugin-custom-provider-enhancer说明文档
阅读完整 README ↗⚙️ 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