eibednejo/dsh-llm-commandcode0

dsh-llm-commandcode

DeepSeek Harness (dsh) LLM adapter for Command Code, routing models through the generate endpoint a Go plan can reach — including image input.

包名
dsh-llm-commandcode
版本
0.1.0
许可证
MIT
最近更新
2026年9月11日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

Configuration

FieldDefaultMeaning
apiKeyEnvCOMMAND_CODE_API_KEYCredential reference resolved per request
baseURLhttps://api.commandcode.aiAPI root; /alpha/generate is appended
workingDirprocess working directoryReported to the endpoint as request context
cliVersioninstalled command-code version, else 1.53.0Sent as x-command-code-version, which the endpoint gates on
maxTokens64000Default output cap; a catalog model's own cap and an explicit request value win
defaultContextWindow1000000Capacity for a model the catalog does not size
defaultReasoningEfforthighEffort used while a session has picked none
streamIdleTimeoutMs300000Maximum silence between two stream events
modelsthe five DeepSeek modelsStatic advisory catalog, used when discovery is off or unreachable
modelCatalogautoauto refreshes from the endpoint (cached an hour); static never asks
zeroDataRetentionfalseSend x-cmd-zdr: 1, asking the gateway for zero retention
requestImagePixelBudget640000Route default pixel budget per request image; a catalog model's own budget wins
requestImageMaxBytes1048576Route default encoded-byte target per request image; a catalog model's own target wins
maxRequestImageBytes20971520Bound on accumulated base64 image payload in one request
maxImagesPerRequest600Maximum represented images in one request
imageOffloadByteQuantum10485760Raw-byte removal step once the payload bound is exceeded
imageOffloadCountQuantum20Image-count removal step once the count bound is exceeded
retryPolicynormal, five retriesProvider-owned retry policy

A per-model override goes on the catalog entry itself:

- id: llm-commandcode
  name: 'dsh-llm-commandcode'
  config:
    models:
      - id: deepseek/deepseek-v4.1-flash
        inputModalities: [text, image]
        imagePixelBudget: 1048576 # a larger per-image budget than the route default
        imageMaxBytes: 2097152