fix: 修改超时时间并更新错误提示信息

This commit is contained in:
sliverp
2026-02-03 12:33:52 +08:00
parent 1b58881f8d
commit 3c140f5e92

View File

@@ -389,7 +389,7 @@ export async function startGateway(ctx: GatewayContext): Promise<void> {
// 追踪是否有响应 // 追踪是否有响应
let hasResponse = false; let hasResponse = false;
const responseTimeout = 300000; // 30秒超时 const responseTimeout = 90000; // 90s 超时
let timeoutId: ReturnType<typeof setTimeout> | null = null; let timeoutId: ReturnType<typeof setTimeout> | null = null;
const timeoutPromise = new Promise<void>((_, reject) => { const timeoutPromise = new Promise<void>((_, reject) => {
@@ -614,7 +614,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] QQ响应正常但未收到clawdbot响应请检查大模型是否正确配置"); await sendErrorMessage("QQ Channel 收到了你的请求已经转交给了Openclaw正在处理中...");
} }
} }
} catch (err) { } catch (err) {