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.

AI 分析

核心用途是将 DSH 的模型请求路由至 Command Code 的生成接口。适合使用 Command Code 服务的用户,支持包含图像输入在内的多模态任务。

パッケージ
dsh-llm-commandcode
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/09/11

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

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