Skip to main content
Use auto_routing when you want the gateway to choose between quantized, MoE, and dense variants based on request complexity. When sibling variants are not registered yet, use auto_routing_debug to verify the routing decision itself. The response metadata will include:
  • routed_model
  • auto_routing_debug
auto_routing_debug is a compact JSON string with the requested model, selected tier, reasoning effort, score, and reasons.

Run the validation

The production verification on March 31, 2026 used the Responses endpoint directly with a fixed model and an opt-in debug flag.
bash
If the deployment is live, the response metadata includes a payload like this:
The routed_model may still equal the requested model if no compatible sibling family exists in production yet. That does not mean the heuristic failed. The proof is the desired_tier, reasoning_effort, score, and reasons in auto_routing_debug.

Test method

The production check used six Responses requests against https://apigw.mka1.com/api/v1/llm/responses. Each request set:
  • model: "meetkai:functionary-pt"
  • auto_routing: true
  • auto_routing_debug: true
The matrix covered:
  1. Short English transform prompt
  2. Medium structured-output prompt
  3. Long incident-analysis prompt
  4. Forced tool-use prompt
  5. Short Portuguese transform prompt
  6. Long Portuguese incident-analysis prompt
For each response, the validation recorded:
  • HTTP status
  • metadata.routed_model
  • parsed metadata.auto_routing_debug
  • effective reasoning.effort

Live production results

These were the observed production results from March 31, 2026 after PR 321 deployed: All six requests returned 200 OK. All six responses included auto_routing_debug. The observed tier matched the expected tier for every case.

Raw response excerpts

The examples below are adapted from the live production log.

Short transform prompt

Request:
Observed response excerpt:

Structured-output prompt

Request:
Observed response excerpt:

Long incident-analysis prompt

Request:
Observed response excerpt:

Forced tool-use prompt

Request:
Observed response excerpt:

Portuguese transform prompt

Request:
Observed response excerpt:

Portuguese incident-analysis prompt

Request:
Observed response excerpt:

Interpret the result

Use this checklist when validating a deployment:
  1. Confirm the response includes metadata.auto_routing_debug.
  2. Parse the JSON string and inspect desired_tier.
  3. Check that reasoning_effort matches the expected complexity level.
  4. Check that the reasons match the prompt features you intended to trigger.
  5. If sibling variants exist, also confirm that routed_model changes to the expected sibling.
If auto_routing_debug is missing, the deployed API image likely does not yet include the feature.

Notes

  • auto_routing_debug is intended for validation and rollout checks. It is opt-in and should not be enabled by default for normal production traffic.
  • auto_routing_debug is currently available on the Responses API.
  • Portuguese prompt heuristics are included in the current production routing logic, so short transform prompts and complex incident-analysis prompts can be validated in both English and Portuguese.