From 7607bfa98dae4f53bfce3a628ac5fd5a40101409 Mon Sep 17 00:00:00 2001 From: godo Date: Sat, 23 Nov 2024 14:32:47 +0800 Subject: [PATCH] change ai --- frontend/src/hook/useAi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/hook/useAi.ts b/frontend/src/hook/useAi.ts index 2c16dc4..664d769 100644 --- a/frontend/src/hook/useAi.ts +++ b/frontend/src/hook/useAi.ts @@ -26,7 +26,8 @@ export async function askAi(question: any, action: string) { const postMsg: any = { messages: [ { - role: "assistant", + //role: "assistant", + role: "user", content: prompt }, ],