Skip to main content

Module ollama

Module ollama 

Source
Expand description

Ollama provider wire helpers, also preserved at the crate root.

Structs§

OllamaCodec
Runtime codec for Ollama chat JSON and NDJSON response bodies.
OllamaCodecLib
Host-registered lib for codec:ollama.
OllamaRequestOptions
Options controlling how a chat model-request transcript is projected into an Ollama JSON request body.

Functions§

decode_ollama_response
Decodes a non-streamed Ollama JSON response body into a canonical model-response transcript attributed to runner and model.
decode_ollama_response_with_limits
Decodes a non-streamed Ollama JSON response under caller-supplied limits.
decode_ollama_stream
Decodes a newline-delimited Ollama streaming response body into a single canonical model-response transcript attributed to runner and model.
decode_ollama_stream_with_limits
Decodes a newline-delimited Ollama stream under caller-supplied limits.
encode_ollama_request
Encodes a chat model-request transcript into an Ollama JSON request body.