tweak: show actual retry error message instead of generic error msg (#11520)
This commit is contained in:
parent
a19ef17bcb
commit
da7c874808
1 changed files with 2 additions and 8 deletions
|
|
@ -89,13 +89,7 @@ export namespace SessionRetry {
|
|||
if (json.type === "error" && json.error?.code?.includes("rate_limit")) {
|
||||
return "Rate Limited"
|
||||
}
|
||||
if (
|
||||
json.error?.message?.includes("no_kv_space") ||
|
||||
(json.type === "error" && json.error?.type === "server_error") ||
|
||||
!!json.error
|
||||
) {
|
||||
return "Provider Server Error"
|
||||
}
|
||||
return JSON.stringify(json)
|
||||
} catch {
|
||||
return undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue