mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Simplify streaming code for code assist server (#4619)
This commit is contained in:
committed by
GitHub
parent
f95674e646
commit
d7a57d85a3
@@ -68,10 +68,6 @@ export function isProQuotaExceededError(error: unknown): boolean {
|
||||
};
|
||||
};
|
||||
if (gaxiosError.response && gaxiosError.response.data) {
|
||||
console.log(
|
||||
'[DEBUG] isProQuotaExceededError - checking response data:',
|
||||
gaxiosError.response.data,
|
||||
);
|
||||
if (typeof gaxiosError.response.data === 'string') {
|
||||
return checkMessage(gaxiosError.response.data);
|
||||
}
|
||||
@@ -87,11 +83,6 @@ export function isProQuotaExceededError(error: unknown): boolean {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
console.log(
|
||||
'[DEBUG] isProQuotaExceededError - no matching error format for:',
|
||||
error,
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user