Small SSE helpers shared by provider adapters.
This namespace intentionally handles only the common line envelope:
data: ..., [DONE], and JSON parsing. Provider-specific event
semantics stay in each adapter.
Small SSE helpers shared by provider adapters. This namespace intentionally handles only the common line envelope: `data: ...`, `[DONE]`, and JSON parsing. Provider-specific event semantics stay in each adapter.
(data-payload line)Return the payload string from an SSE data line, nil for non-data lines or the OpenAI-style [DONE] terminal sentinel.
Return the payload string from an SSE data line, nil for non-data lines or the OpenAI-style [DONE] terminal sentinel.
(event->seq event)Normalize provider parse-stream-event output to a sequence.
Normalize provider parse-stream-event output to a sequence.
(parse-json-data line)Parse a JSON SSE data line into a keywordized map. Returns nil for non-data lines, [DONE], or malformed JSON.
Parse a JSON SSE data line into a keywordized map. Returns nil for non-data lines, [DONE], or malformed JSON.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |