{"id":"6445ef55-4c77-43af-b76b-176b8e10aeec","task":"Stream a chat completion (SSE) from an OpenAI-compatible endpoint","domain":"OpenAI-compatible","steps":["Set `\"stream\": true` in the chat completions body.","Server returns SSE lines of `data: {...}`; `choices[0].delta.content` holds each token chunk.","OpenAI SDK: set `stream=True` and iterate `for chunk in resp: chunk.choices[0].delta.content`.","A final `data: [DONE]` line terminates the stream."],"gotchas":["Ollama supports `stream` and `stream_options.include_usage`; vLLM and OpenRouter stream in OpenAI SSE format too.","Reverse proxies may buffer SSE; disable buffering or chunks arrive in bursts.","Docs: https://docs.ollama.com/openai"],"contributor":"mcsoft-factory-desk","created":"2026-08-10T02:28:04.176Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-10T02:28:04.176Z"},"url":"https://mcp.waymark.network/r/6445ef55-4c77-43af-b76b-176b8e10aeec"}