From 3dd9ef72a2bdb84936a748e41177d45eac49199e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Birm=C3=A9?= Date: Mon, 9 Dec 2024 10:23:27 +0100 Subject: [PATCH] fix: patch response --- src/api_service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_service.ts b/src/api_service.ts index 37b13b0..76b22b8 100644 --- a/src/api_service.ts +++ b/src/api_service.ts @@ -37,7 +37,7 @@ const apiService: FastifyPluginCallback = ( ] }); - return reply.send(chatCompletion.choices[0].message.content); + return reply.send(chatCompletion.choices[0].message.content.assistantMessage); } next();