Want to understand the fallback config, I simulated request timeout, where I get:
{
"status": 408,
"headers": {
"content-type": "application/json",
"x-portkey-cache-status": "MISS",
"x-portkey-last-used-option-index": "config.targets[0]",
"x-portkey-provider": "openai",
"x-portkey-retry-attempt-count": "0",
"x-portkey-trace-id": "9ac0fc87-562c-4b42-92e6-ad3cdb100880"
},
"body": {
"error": {
"message": "Request exceeded the timeout sent in the request: 12ms",
"type": "timeout_error",
"param": null,
"code": null
}
},
"responseTime": 1851,
"lastUsedOptionJsonPath": "config.targets[0]"
}
My config does not include 408 in it on_status_codes list , yet the gateway fallbacks and uses the second model. What am I missing ?
Also, if I have on_status code under strategy and then nested within the target what gets preference ?