소스 검색

stash code

lloydzhou 1 년 전
부모
커밋
f7a5f836db
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/client/platforms/openai.ts

+ 2 - 2
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;