Generate grounded completions with intelligent routing and retrieval-augmented generation (RAG).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body for the grounded completions endpoint. Exactly one routing mechanism (auto_routing, model, or model_family) must be specified.
Chat message history with role and content fields.
Enables intelligent model selection. Mutually exclusive with model and model_family.
Specific Gloo model identifier. Mutually exclusive with auto_routing and model_family.
Provider family for model selection. Mutually exclusive with auto_routing and model.
openai, anthropic, google, open source Publisher name to retrieve sources from. Defaults to GlooGrounded when omitted.
Number of sources to retrieve for grounding (1-10).
1 <= x <= 10Theological perspective to apply. Options: evangelical, catholic, mainline, not_faith_specific.
evangelical, catholic, mainline, not_faith_specific Enables streaming responses via server-sent events.
Sampling temperature controlling randomness.
0 <= x <= 2Maximum number of tokens to generate in the response.
x >= 1Function calling definitions.
Controls which tool (if any) the model should use.
none, auto, required Allow parallel tool execution.
Successful grounded completion response
Response from the grounded completions endpoint.
Unique completion identifier.
Object type, always 'chat.completion'.
Unix timestamp of when the completion was created.
The model that was selected and used for the completion.
The model provider name.
Provider family of the selected model.
Indicates whether auto routing was used.
The routing method used: auto_routing, model_family, or direct_model_selection.
The performance tier assigned by the routing system.
Confidence score for the routing decision (0.0 to 1.0).
The theological perspective that was applied to the response.
Whether RAG was used to retrieve sources and ground the response.
List of completion choices.
Token consumption metrics.