MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

[Bug] historical chat record variable assignment bug

Open dongdongT opened this issue 1 year ago • 4 comments

Contact Information

No response

MaxKB Version

v1.10.2-lts

Problem Description

历史聊天记录变量赋值bug

Steps to Reproduce

对历史聊天记录变量进行重新赋值之后, Image AI对话模块还是会使用原始的历史聊天记录,这里本次对话中的内容是成功修改后的历史,但是显示的历史记录还是原始的历史,看起来历史像是两个变量存储的,通过变量赋值可以成功赋值其中一个变量,但是实际问答的历史又是另外的变量。 Image

The expected correct result

No response

Related log output


Additional Information

No response

dongdongT avatar Apr 08 '25 07:04 dongdongT

您好,目前是这样设计的,ai对话显示的历史聊天记录是不会被修改的

zyyfit avatar Apr 09 '25 02:04 zyyfit

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, it is currently designed like this. The historical chat history displayed by AI dialogue will not be modified.

shaohuzhang1 avatar Apr 09 '25 02:04 shaohuzhang1

您好,感谢回复! ai对话显示的历史聊天记录不会被修改,请问对话实际使用的是显示的历史对话,还是已经全局变量赋值修改后的历史对话?

dongdongT avatar Apr 09 '25 02:04 dongdongT

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, thanks for the reply! The historical chat history displayed by the ai dialogue will not be modified. Does the dialogue actually use the displayed historical conversation, or the historical conversation after the global variable assignment has been modified?

shaohuzhang1 avatar Apr 09 '25 02:04 shaohuzhang1