model: "dari/routing". Dari Router selects one enabled model, forwards the request to that model’s provider, and returns an OpenAI-compatible response.
Request
Required Fields
| Field | Required | Details |
|---|---|---|
model | Yes | Must be dari/routing. |
messages | Yes | OpenAI-style chat messages. At least one message is required. |
Common Optional Fields
| Field | Details |
|---|---|
stream | Set to true for Server-Sent Events. |
temperature | Sampling temperature forwarded to the selected provider. |
top_p | Nucleus sampling value forwarded to the selected provider. |
max_tokens | Maximum output tokens. |
max_completion_tokens | Alternative maximum output token field used by newer OpenAI clients. |
stop | Stop sequence or sequences. |
tools | OpenAI-style tool definitions. |
tool_choice | OpenAI-style tool choice. |
response_format | Text, JSON object, or JSON schema response format. |
metadata | Application metadata forwarded with the request where supported. |
user | End-user identifier forwarded with the request where supported. |
routing.instructions | Request-specific guidance for model selection. |
Response
model or dari_routing.selected_model to record which provider model actually served the request.