소스 검색

stash code

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

+ 3 - 1
app/client/platforms/openai.ts

@@ -287,7 +287,9 @@ export class ChatGPTApi implements LLMApi {
         const funcs = {
           get_current_weather: (args: any) => {
             console.log("call get_current_weather", args);
-            return "30";
+            return new Promise((resolve) => {
+              setTimeout(() => resolve("30"), 3000);
+            });
           },
         };
         const finish = () => {