Ollama-compatible chat
Send an Ollama-compatible chat request to the local PAIR proxy. PAIR forwards the request to one eligible node running a compatible engine with the requested model available. With streaming enabled the upstream engine returns newline-delimited JSON chunks; the final chunk sets done to true.
Request
This endpoint expects an object.
model
Model name that must be available on an eligible node.
messages
stream
When true (the Ollama default), the response is streamed as newline-delimited JSON chunks.
Response headers
X-PAIR-Served-By
Stable host UUID of the node that served the request.
Response
Chat response from the serving node.
model
message
done
created_at
done_reason
total_duration
Total request time in nanoseconds, as reported by the engine.