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 = () => {