fix: 添加网络和解析错误的异常处理

This commit is contained in:
sliverp
2026-01-30 10:08:59 +08:00
parent c55896b971
commit a9b7bb22e0

View File

@@ -367,7 +367,7 @@ export async function startGateway(ctx: GatewayContext): Promise<void> {
} }
if (!hasResponse) { if (!hasResponse) {
log?.error(`[qqbot:${account.accountId}] No response within timeout`); log?.error(`[qqbot:${account.accountId}] No response within timeout`);
await sendErrorMessage("[ClawdBot] 未收到响应,请检查大模型 API Key 是否正确配置"); await sendErrorMessage("[ClawdBot] QQ响应正常但未收到clawdbot响应请检查大模型是否正确配置");
} }
} }
} catch (err) { } catch (err) {