Files
makelore/shared/ai-gateway-error-details.ts
brother7 5a275b93a7 feat: remove legacy OpenCode runtime
Cut product flows over to Coding/Pi and retain only the migration-owned v1 boundary. Promote supported native optional packages because electron-builder omitted pnpm transitive optional closure from the packaged ASAR.
2026-08-24 12:17:43 +08:00

7 lines
327 B
TypeScript

export function isAIGatewayUpstreamSaturated(message: string | null | undefined): boolean {
const normalized = message?.trim().toLowerCase() ?? '';
if (!normalized) return false;
return normalized.includes('当前分组上游负载已饱和')
|| (normalized.includes('upstream') && normalized.includes('saturat'));
}