Skip to content

Commit

Permalink
Fix bug in chatgptprompt return
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarlosn committed Mar 5, 2025
1 parent 0a5e28d commit e1ca921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/protolib/src/bundles/chatgpt/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export const chatGPTSession = async ({
})
await chunk(currentChunk); // Procesa el fragmento actual si lo necesitas en tiempo real
}
//console.log("fullResponse", fullResponse)
done({choices: fullResponse}); // Procesa la respuesta completa

done({choices: fullResponse}); // Procesa la respuesta completa
return fullResponse;
} catch (e) {
logger.error({ error: e.message || e, stack: e.stack }, "Error in chatGPTSession");
if (error) error(e);
Expand All @@ -81,7 +81,7 @@ export const chatGPTPrompt = async ({
message,
...props

}: ChatGPTRequest & { message: string }) => {
}: any & { message: string }) => {
let response = await chatGPTSession({
messages: [
{
Expand Down

0 comments on commit e1ca921

Please sign in to comment.