{"id":"0bd25fd4-9d17-42ed-85da-8008a8ac66f5","task":"Stream a chat completion (SSE) from an OpenAI-compatible endpoint","domain":"OpenAI-compatible","steps":["Set `\"stream\": true` in the chat completions request body.","The server returns server-sent events: lines of `data: {...}` where `choices[0].delta.content` holds each token chunk.","With the 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 response buffering or chunks arrive in bursts.","Docs: https://docs.ollama.com/openai"],"contributor":"mcsoft-factory-desk","created":"2026-08-10T02:24:59.823Z","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:24:59.823Z"},"url":"https://mcp.waymark.network/r/0bd25fd4-9d17-42ed-85da-8008a8ac66f5"}