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
Zen appends an invalid cost event to OpenAI-compatible streams:
{"choices":[],"cost":"0"}
The event omits id, object, created, and model. Strict OpenAI chunk decoders parse every SSE data: event and fail with missing field id before they can ignore the cost metadata. Expected: retain cost inside a valid chat-completion chunk envelope.
Plugins
N/A
OpenCode version
Zen production endpoint, observed 2026-07-27
Steps to reproduce
Send a streaming request through the Zen OpenAI-compatible endpoint.
Parse every data: JSON event as an OpenAI chat completion chunk.
Observe the final cost event fail schema deserialization because id is missing.
Screenshot and/or share link
N/A — failure occurs in the raw SSE response shown above.
Activity
github-actions commentedon Sep 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.