From 52be6d8f01bb96d3e10f094f07226906deb5b853 Mon Sep 17 00:00:00 2001 From: luocq3 Date: Tue, 27 Feb 2024 15:52:04 +0800 Subject: [PATCH] aiChat is undefined --- app/controller/app-center/aiChat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/app-center/aiChat.ts b/app/controller/app-center/aiChat.ts index 6435a5b..17824ec 100644 --- a/app/controller/app-center/aiChat.ts +++ b/app/controller/app-center/aiChat.ts @@ -21,6 +21,6 @@ export default class AiChatController extends Controller { ctx.helper.throwError('Not passing the correct message parameter'); } const model = foundationModel?.model ?? E_FOUNDATION_MODEL.GPT_35_TURBO; - ctx.body = await ctx.service.aiChat.getAnswerFromAi(messages, { model }); + ctx.body = await ctx.service.appCenter.aiChat.getAnswerFromAi(messages, { model }); } }