anomalyco / anomalyco/opencode
Zen: muse-spark-1.2-contributor-free requires /responses not /chat/completions (500) and has text->tool chain stall
@MrMushrooooom is already working on this.
Since Aug 24, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Summary
muse-spark-1.2-contributor-free via Zen POST /zen/v1/chat/completions returns 500 Internal Server Error on all clients, but POST /zen/v1/responses returns 200 and works. Indicates model was moved to Responses API without docs/client update.
After using responses, a second model bug: text (only) -> tool -> text 3-step prompt stalls after step 1. Model says "Next I'll run a command" but finish_reason:stop with 0 function_call, loop exits. Same prompt via mimo-v2.5-free (chat) works, and spark with No text before tool works.
Repro
curl -s https://opencode.ai/zen/v1/chat/completions -H "Authorization: Bearer $ZEN_KEY" -H "User-Agent: opencode/1.0.0 (linux; x64)" -H "HTTP-Referer: https://opencode.ai/" -H "X-Title: opencode" -H "x-opencode-client: cli" -d '{"model":"muse-spark-1.2-contributor-free","messages":[{"role":"user","content":"hi"}],"stream":false}'
# 500 {"type":"error","error":{"type":"error","message":"Internal server error"}}
curl -s https://opencode.ai/zen/v1/responses -H ... -d '{"model":"muse-spark-1.2-contributor-free","input":"hi","stream":false}'
# 200 OK with output_text "Hey there! ..."
# Tool chain via opencode (also Hermes codex_responses)
opencode run "first send me a msg (only text) then run a cmd (any, like echo hello) then send another msg (text) to me" --model opencode/muse-spark-1.2-contributor-free
# -> Step 1 text only, then stops, no tool execution (Build 6.3s then idle)
# vs mimo: executes echo and finishes steps 1-3
Evidence
- Direct curl above (same key, same headers) proves routing.
- Hermes
opencode_model_api_mode()and~/.reasonixboth assumechatfor spark, so all harnesses hit 500 until patched tocodex_responses. - After patch,
responsestool chain still stalls for forcedonly textfirst turn. Hermes repro:AIAgent(api_mode=codex_responses)1 call vs 2 for mimo.
Suggested
- Either revert spark to
chat_completionsor update Zen docs/model catalog to advertiseresponsesand fix tool training to allowtext -> toolinterleave (or documenttext+toolsame-turn pattern). - If kept on
responses, ensure Hermes clients mapmuse-spark*tocodex_responses(currentlyhermes_cli/models.pymaps onlygpt-*).
Env
opencode 1.18.21, https://opencode.ai/zen/v1, muse-spark-1.2-contributor-free
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.