chore: format code
This commit is contained in:
parent
62bcdf3144
commit
5b7581ebbe
1 changed files with 4 additions and 1 deletions
|
|
@ -71,7 +71,10 @@ export namespace SessionRetry {
|
||||||
if (json.type === "error" && json.error?.code?.includes("rate_limit")) {
|
if (json.type === "error" && json.error?.code?.includes("rate_limit")) {
|
||||||
return "Rate Limited"
|
return "Rate Limited"
|
||||||
}
|
}
|
||||||
if (json.error?.message?.includes("no_kv_space") || (json.type === "error" && json.error?.type === "server_error")) {
|
if (
|
||||||
|
json.error?.message?.includes("no_kv_space") ||
|
||||||
|
(json.type === "error" && json.error?.type === "server_error")
|
||||||
|
) {
|
||||||
return "Provider Server Error"
|
return "Provider Server Error"
|
||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue