Skip to content

for-agentrouter-d4f-nonstream-fix (prerelease)

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 24 Sep 09:53
· 2 commits to main since this release

Patched 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:

  1. OpenAI→Anthropic protocol mismatch: the patch adds a request-format: anthropic per-provider option so OpenAI chat-completions requests are translated to Anthropic Messages before forwarding to agentrouter.

  2. Non-stream response translation: the upstream translator ConvertClaudeResponseToOpenAINonStream only 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 dedicated convertClaudeMessageObjectToOpenAI path 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.