fix: restore coding history and quota feedback
This commit is contained in:
@@ -86,7 +86,8 @@ function getForwardedOneApiStatus(status: number, bodyText: string): number {
|
||||
if (status === 502 && isAIGatewayUserContextMissing(bodyText)) {
|
||||
return 401;
|
||||
}
|
||||
if (status === 429 && getAIGatewayErrorKind(bodyText) === 'quota_exhausted') {
|
||||
if ((status === 403 || status === 429)
|
||||
&& getAIGatewayErrorKind(bodyText) === 'quota_exhausted') {
|
||||
return 402;
|
||||
}
|
||||
if (status === 429 && isAIGatewayUpstreamSaturated(bodyText)) {
|
||||
|
||||
Reference in New Issue
Block a user