Explorar o código

fix: empty response

Dogtiti hai 1 ano
pai
achega
4a8e85c28a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/client/platforms/openai.ts

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

@@ -135,7 +135,7 @@ export class ChatGPTApi implements LLMApi {
         },
       ];
     }
-    return res.choices?.at(0)?.message?.content ?? "";
+    return res.choices?.at(0)?.message?.content ?? res;
   }
 
   async chat(options: ChatOptions) {