修复首次会话等待与上游饱和重试
This commit is contained in:
6
shared/opencode-error-details.ts
Normal file
6
shared/opencode-error-details.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function isOpencodeUpstreamSaturated(message: string | null | undefined): boolean {
|
||||
const normalized = message?.trim().toLowerCase() ?? '';
|
||||
if (!normalized) return false;
|
||||
return normalized.includes('当前分组上游负载已饱和')
|
||||
|| (normalized.includes('upstream') && normalized.includes('saturat'));
|
||||
}
|
||||
Reference in New Issue
Block a user