Browse Source

stash code

lloydzhou 1 năm trước cách đây
mục cha
commit
f7a5f836db
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;