You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Description**
Makes the JSON detection in ResponseError translator more robust: if the
upstream content-type contains application/json (e.g., application/json;
charset=utf-8), it now passes the upstream error body through unchanged
instead of wrapping it again.
Removes invalid `:path` pseudo-header from error response translation
for rerank to prevent Envoy stream aborts, yielding a 500 with an empty
body.
---------
Signed-off-by: ayush <[email protected]>
Co-authored-by: Takeshi Yoneda <[email protected]>
expectResponseBody: `{"type":"error","error":{"type":"OpenAIBackendError","code":"404","message":"{\n \"error\": {\n \"message\": \"The model `+"`gpt-4.1-nano-wrong`"+` does not exist or you do not have access to it.\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": \"model_not_found\"\n }\n}\n"}}`,
70
+
expectResponseBody: "{\n\"error\": {\n\"message\": \"The model `gpt-4.1-nano-wrong`does not exist or you do not have access to it.\",\n\"type\": \"invalid_request_error\",\n\"param\": null,\n\"code\": \"model_not_found\"\n }\n}\n",
expectResponseBody: `{"type":"error","error":{"type":"OpenAIBackendError","code":"404","message":"{\n \"error\": {\n \"message\": \"The model `+"`text-embedding-4-ultra`"+` does not exist or you do not have access to it.\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": \"model_not_found\"\n }\n}\n"}}`,
50
+
expectResponseBody: "{\n\"error\": {\n\"message\": \"The model `text-embedding-4-ultra`does not exist or you do not have access to it.\",\n\"type\": \"invalid_request_error\",\n\"param\": null,\n\"code\": \"model_not_found\"\n }\n}\n",
0 commit comments