Skip to content

Commit

Permalink
fix: patch response
Browse files Browse the repository at this point in the history
  • Loading branch information
birme committed Dec 9, 2024
1 parent 5eb680e commit 3dd9ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const apiService: FastifyPluginCallback<ApiServiceOptions> = (
]
});

return reply.send(chatCompletion.choices[0].message.content);
return reply.send(chatCompletion.choices[0].message.content.assistantMessage);
}

next();
Expand Down

0 comments on commit 3dd9ef7

Please sign in to comment.