From d58b99d6023ad4681e24f3fabcf34fd525cc8672 Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 29 Aug 2024 01:00:16 +0800 Subject: [PATCH] stash code --- app/client/platforms/openai.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 4146ec9c1..fe1ef38d7 100644 --- a/app/client/platforms/openai.ts +++ b/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 = () => {