Chat completion
OpenAI-compatible chat completions, grounded in live web search.
When web_search is false (or tools is false) we skip the SERP
fetch entirely and route straight to Claude — sub-1s for simple chat.
When stream is true we return Server-Sent Events with OpenAI-style
chat.completion.chunk frames terminated by data: [DONE].
Authentication
Request
OpenAI-style messages (system / user / assistant).
Echoed back in the response; does not affect routing.
When true, return Server-Sent Events with OpenAI-style chat.completion.chunk frames terminated by data: [DONE].
Output format. text (default), json_object, or json_schema. For json_schema, pass {type:‘json_schema’, json_schema:{name, schema}}.
OpenAI-range 0-2. Mapped to Anthropic’s 0-1 range (clamped).
false disables Scout’s built-in web search (pure chat). An array is accepted for OpenAI compatibility but client-defined tools are not yet wired up; Scout’s built-in search is always available.
Explicit toggle for the built-in web grounding. Set to false for pure chat (sub-1s).
Deterministic sampling seed (forwarded when supported).
String or list of stop sequences. Forwarded as Anthropic stop_sequences.