【解决todo】AI Chat 增加 useContext 控制

This commit is contained in:
cherishsince committed 2024-05-22 15:14:17 +08:00
1 parent 689d92dc66
commit aa93172c1d
2 files changed
+8 -2

No files matched your search

+3 -1
View File
@@ -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,