for-agentrouter-d4f-nonstream-fix (prerelease)
Pre-releasePatched build for agentrouter's deepseek-v4-flash
This is a prerelease from the for-agentrouter-d4f fork branch. It contains a patched binary that fixes two related bugs when running through agentrouter:
-
OpenAI→Anthropic protocol mismatch: the patch adds a
request-format: anthropicper-provider option so OpenAI chat-completions requests are translated to Anthropic Messages before forwarding to agentrouter. -
Non-stream response translation: the upstream translator
ConvertClaudeResponseToOpenAINonStreamonly knew how to parse the SSE chunked shape. When the upstream returned a single non-stream Anthropic Message object, the translator returned an empty base template (content="",id="",model=""). The fix adds a dedicatedconvertClaudeMessageObjectToOpenAIpath that translates text, thinking, and tool_use blocks plus usage metadata. Streaming behaviour is unchanged.
Source branch
for-agentrouter-d4f at commit fb1805efec2f1216f57ce6d7de2ee44480bb69bc.
Setup guide
docs/agentrouter-setup.md_CN.md (Chinese).
Asset naming
Built by the project's own release.yaml workflow, which produces a tarball per platform using the upstream convention CLIProxyAPI_<tag>_<os>_<arch>.tar.gz. Two convenient aliases are also attached: CLIProxyAPI-linux-amd64 and CLIProxyAPI-linux-arm64.
Linux builds come in two flavors per arch: the default linux_<arch> (GLIBC 2.17 baseline, supports dynamic library plugins) and _no-plugin (portable, for musl-based or older systems).
Status
Prerelease. Non-stream translation verified end-to-end against a mock Anthropic Messages endpoint with this exact build chain.