diff --git a/src/api/ai/chat/message/index.ts b/src/api/ai/chat/message/index.ts index 802061af..0547ab1b 100644 --- a/src/api/ai/chat/message/index.ts +++ b/src/api/ai/chat/message/index.ts @@ -39,6 +39,7 @@ export const ChatMessageApi = { conversationId: number, content: string, ctrl, + enableContext: boolean, onMessage, onError, onClose @@ -53,7 +54,8 @@ export const ChatMessageApi = { openWhenHidden: true, body: JSON.stringify({ conversationId, - content + content, + useContext: enableContext, }), onmessage: onMessage, onerror: onError, diff --git a/src/views/ai/chat/index.vue b/src/views/ai/chat/index.vue index 67f77d94..999e1736 100644 --- a/src/views/ai/chat/index.vue +++ b/src/views/ai/chat/index.vue @@ -54,7 +54,9 @@ placeholder="问我任何问题...(Shift+Enter 换行,按下 Enter 发送)" >