dsh-model-modes
DeepSeek Harness 智能体推理控制与原生快速模式插件
AI 分析
为 Web 输入框提供感知能力的推理控制及特定服务商的快速响应模式。适合需要精细调节模型推理策略的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DTSFO/dsh-model-modes说明文档
阅读完整 README ↗Configuration
Built-in contracts are enabled by default. fastProfiles is an additive/override layer; later exact provider/model/API matchers win.
- id: dsh-model-modes
config:
includeDefaultFastProfiles: true
fastProfiles:
# A verified self-hosted gateway. Provider and API must be exact;
# use model: '*' only if every model on that route has the same contract.
- provider: your-gateway
model: gpt-5.6
api: openai-responses
strategy: openai-fast
# Vertex is explicit because the matcher cannot inspect endpoint location.
- provider: google-vertex
model: gemini-3.7-flash
api: google-vertex
strategy: vertex-priority
Known strategies:
openai-fastopenai-codex-fastservice-tier-priorityfireworks-prioritygoogle-priorityvertex-prioritybedrock-priorityopenrouter-fastvercel-gateway-fastcustom
Set includeDefaultFastProfiles: false to use only explicit profiles.
Use custom only for a verified gateway-specific contract:
fastProfiles:
- provider: your-gateway
model: your-model
api: openai-responses
strategy: custom
body:
acceleration:
tier: turbo
headers:
X-Gateway-Fast: "1"
To keep Fast orthogonal, custom patches cannot modify model, provider, reasoning, reasoning_effort, thinking, thinkingConfig, effort, and related fields.