fix(agent): increase smart auto timeout to avoid fallback summaries
This commit is contained in:
parent
0f3b562dc7
commit
f03721b6f0
@ -1305,7 +1305,7 @@ let globalStreamContext: ResumableStreamContext | null = null;
|
||||
const inFlightChatRequests = new Map<string, number>();
|
||||
const IN_FLIGHT_REQUEST_TTL_MS = 5 * 60 * 1000;
|
||||
const DUPLICATE_REQUEST_WAIT_MS = 2 * 60 * 1000;
|
||||
const SMART_AUTO_GRAPH_TIMEOUT_MS = 18000;
|
||||
const SMART_AUTO_GRAPH_TIMEOUT_MS = 45000;
|
||||
|
||||
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
|
||||
@ -1812,7 +1812,7 @@ export async function POST(request: Request) {
|
||||
context: undefined,
|
||||
}),
|
||||
"fallbackAnalyzeIntent",
|
||||
8000,
|
||||
15000,
|
||||
);
|
||||
if (rescueAnalysis.conversationalReply?.trim()) {
|
||||
smartAutoFriendlyMessage = rescueAnalysis.conversationalReply.trim();
|
||||
@ -1854,7 +1854,7 @@ export async function POST(request: Request) {
|
||||
context: typeof autoContext === "string" ? autoContext : undefined,
|
||||
}),
|
||||
"fallbackVisualSummary",
|
||||
8000,
|
||||
15000,
|
||||
);
|
||||
if (summary?.trim()) {
|
||||
fallbackVisualSummary = summary.trim();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user