pub type Decoder = fn(Option<&str>, &str) -> Result<StreamDelta>;Expand description
Turns one wire frame into a StreamDelta.
The first argument is the SSE event name where there is one; Ollama sends
bare JSON lines and passes None.
pub type Decoder = fn(Option<&str>, &str) -> Result<StreamDelta>;Turns one wire frame into a StreamDelta.
The first argument is the SSE event name where there is one; Ollama sends
bare JSON lines and passes None.