goku54477/dsh-opencode-provider

goku54477★ 0TypeScript最后同步: 2026-08-20

在 GitHub 打开

Use OpenCode models, including free models, inside DeepSeek Harness without a separate provider API key.

README 摘要

dsh-opencode-provider Use models available through a local OpenCode server inside DeepSeek Harness without a DeepSeek API key. Architecture The adapter serializes the full DSH conversation (system prompt + messages) into a single prompt string, sends it to the OpenCode server, and translates the SSE event stream into DSH StreamChunk values. OpenCode runs its own internal agent/tool loop, so the adapter exposes text output only — structured DSH tool calling is not available. Verified Features - No API key required — connects to a local OpenCode server over plain HTTP - Streaming — text deltas are delivered as they arrive - Cancellation — abort signal tears down the SSE stream and interrupts the session - Timeouts — configurable SSE establishment (10 s), prompt admission (10 s), and terminal completion (120 s) limits - Retry policy — provider-level retry config forwarded to DSH runtime - Live SSE event formats — handles both legacy ( session.text.delta , session.execution.succeeded ) and current ( session.next.text.delta , session.next.step.ended ) event envelopes - Graceful fallback — unknown SSE events are skipped; non-JSON lines are ignored; data.wrapper envelopes are unwrapped de…

在 GitHub 查看完整 README →
Agent/智能体ai-agentdeepseek-harnessdsh-plugindsh-plugin-marketdsh-pluginsllmopencode

分类