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

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

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,