You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom OpenAI-compatible provider: "Expected 'function.name' to be a string" on linux, not windows #31295
If your issue is the same underlying problem, please add any additional context (e.g., whether your vLLM version differs, or whether the Linux vs Windows behavior difference is the new angle) to that existing issue rather than opening a new one.
Still reproducible on 1.18.34. Root cause confirmed by grepping published tarballs: the throw string Expected 'function.name' ships in @ai-sdk/openai-compatible up to 2.0.7 and is gone from 3.0.0 onward (vercel/ai#18440 / PR #18445 fixed it upstream) — but opencode's compiled binary still bundles a pre-3.0.0 copy, so every closed tracker reads "fixed/not-ours" while users keep hitting it.
Filed with evidence + a deterministic synthetic-SSE reproduction (no real API key needed): #52462
Activity
github-actions commentedon Jun 8, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is the same underlying problem, please add any additional context (e.g., whether your vLLM version differs, or whether the Linux vs Windows behavior difference is the new angle) to that existing issue rather than opening a new one.
rekram1-node commentedon Jun 8, 2026
AUTOMATED: closing as duplicate of: #26412
nazerim commentedon Oct 1, 2026
Still reproducible on 1.18.34. Root cause confirmed by grepping published tarballs: the throw string
Expected 'function.name'ships in@ai-sdk/openai-compatibleup to 2.0.7 and is gone from 3.0.0 onward (vercel/ai#18440 / PR #18445 fixed it upstream) — but opencode's compiled binary still bundles a pre-3.0.0 copy, so every closed tracker reads "fixed/not-ours" while users keep hitting it.Filed with evidence + a deterministic synthetic-SSE reproduction (no real API key needed): #52462
Interim fix (MIT, plugin-only, no core changes): https://github.com/nazerim/toolcall-guard — repairs/buffers malformed
tool_callsdeltas at the fetch layer, scrubs replayed ChatML tokens from outbound history (they re-arm the provider's parser every turn), and auto-continues turns the provider silently truncates at a cleanfinish_reason:"stop".