Files
DocsGPT/application
Alex b1f220ec05 fix(v1): make docsgpt extension SSE frames valid chat.completion.chunks
Strict OpenAI clients (e.g. opencode / the Vercel AI SDK) validate every
streaming `data:` frame as a chat.completion.chunk. The id / source /
tool_call / tool_calls_pending events were emitted as bare `{"docsgpt": ...}`
objects with no `choices`, which those clients reject ("expected array,
received undefined" on `choices`).

Wrap the extension in an otherwise-empty chunk
(choices:[{index:0,delta:{},finish_reason:null}]) with a top-level `docsgpt`
field that OpenAI clients ignore, and skip the placeholder "None"
conversation_id frame emitted when the call is not persisted.
2026-06-04 12:07:30 +01:00
..
2026-06-03 14:03:15 +01:00
2026-05-15 12:23:31 +01:00
2026-05-26 15:48:04 +01:00
2026-03-25 22:34:25 +00:00
2026-04-18 13:13:57 +01:00
2026-03-17 14:27:48 +00:00
2026-03-25 00:03:42 +00:00
2026-04-25 14:57:37 +01:00
2026-05-05 01:55:23 +01:00
2026-04-12 00:07:24 +01:00
2025-12-24 18:35:57 +02:00
2026-05-15 12:23:31 +01:00
2026-04-28 02:27:02 +01:00
2026-05-22 16:05:03 +01:00
2026-05-31 18:00:51 +02:00
2026-04-27 22:09:33 +01:00
2026-05-23 02:39:20 +01:00
2026-05-22 16:05:03 +01:00