Use this file to discover all available pages before exploring further.
When troubleshooting AI Gateway issues, you can access detailed information about what happened during request processing using action result variables. This page explains how to capture and interpret this data.
Cloud Endpoints require a terminal action such as deny, custom-response, redirect, or forward-internal to complete the request. See Cloud Endpoints for more details.
Solution: Add more provider keys. With attached provider keys, attach additional keys for the same provider—the most recently attached key is tried first, falling back to older keys on failure. See Multi-Key Failover.
When you get ERR_NGROK_3804 or want to understand what the gateway did, check model_selection to understand how models were filtered:
{ "status": "error", "model_selection": [ { "strategy": "round-robin", "candidates_returned": ["gpt-4o", "claude-3-5-sonnet-20241022"], "candidates_after_allowed_filter": ["gpt-4o"], "candidates_after_client_filter": [], // After filtering by client model/models we have no remaining models "models_to_try": [] } ], "models_tried": [], "error": { "code": "ERR_NGROK_3804", "message": "Unable to route request - no models matched" }}
Solution: The client requested models that didn’t survive filtering. Check client.model and adjust your configuration or the client request. Model names/spelling may be wrong. Try adding the provider prefix for new models or models not in the gateway config or model catalog.