From f7a5f836db61c81cee25f862230c6b8952751dfe Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 29 Aug 2024 00:56:20 +0800 Subject: [PATCH] stash code --- app/client/platforms/openai.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 0eea4331c..4146ec9c1 100644 --- a/app/client/platforms/openai.ts +++ b/app/client/platforms/openai.ts @@ -338,12 +338,12 @@ export class ChatGPTApi implements LLMApi { toolCallMessage, ...toolCallResult, ); - requestAnimationFrame(() => { + setTimeout(() => { // call again console.log("start again"); running = false; chatApi(chatPath, requestPayload as RequestPayload); // call fetchEventSource - }); + }, 60); }); console.log("try run tools", runTools.length, finished); return;