itchenshi/dsh-ready-gui--plugins-dsh-gateway-models ↗★ 3

dsh-gateway-models

DeepSeek Harness plugin for gateway routes (OpenCode Go and Command Code): declares the route wire protocol and endpoint (so the API address never has to be typed), detects/reads each route's model catalog and puts the DeepSeek V4.1 models at the front of the OpenCode Go list while completing the Command Code list from its public catalog, supplies the route baseURL and the DeepSeek reasoning compat a catalog-unknown model needs, and attaches a stable per-conversation x-opencode-session header (fixes 400 MissingSessionID) without leaking the internal session id.

패키지
dsh-gateway-models
호환성
미검증
버전
0.2.6
라이선스
MIT
최근 업데이트
2026. 10. 5.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add 'github:itchenshi/dsh-ready-gui#08a2b2243ff00efbf385ba7012dc521433032a0b&path:plugins/dsh-gateway-models'

使用

没有页面半边,也不需要打开任何界面 —— 重启引擎后它在装配层改配置。你可以在模型选择器里确认:第一项是 DeepSeek V4.1 Flash,llm-pi-ai.providers.opencode-go 里它排在第一位。

Command Code 那一半只对你自己配置过的路由(用户层里有它,比如填过密钥)动手,并按接口地址(api.commandcode.ai)识别路由 —— 路由名叫 commandcode、commandcode-goat 还是别的都行。

配置

cordis.patch.yml 里 id: opencode-go 这一行的 config,全部可选:

键默认说明
providers[opencode, opencode-go]附加会话头的路由名;自定义路由名时加进来
commandcodeProviders无额外的 Command Code 路由 id;仅当某条路由的地址在配置里看不到时才要填
modeuuiduuid = 每会话随机 UUID(安全默认);session-id = 发送内部会话 ID
debugfalsetrue 时记录每个收到会话头的流式调用
debugFile无追加 JSON 日志的路径;仅 $DSH_HOME/logs 或系统临时目录下的路径生效,超过 8 MiB 停止追加