Skip to main content

Decoder

Type Alias Decoder 

Source
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.