浏览代码

fix: agent moderation not working (#20673)

tags/1.4.2
Novice 5 个月前
父节点
当前提交
0ccf8cb23e
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/app/components/base/chat/chat/hooks.ts

+ 1
- 1
web/app/components/base/chat/chat/hooks.ts 查看文件

@@ -366,7 +366,7 @@ export const useChat = (
if (!newResponseItem)
return

const isUseAgentThought = newResponseItem.agent_thoughts?.length > 0
const isUseAgentThought = newResponseItem.agent_thoughts?.length > 0 && newResponseItem.agent_thoughts[newResponseItem.agent_thoughts?.length - 1].thought === newResponseItem.answer
updateChatTreeNode(responseItem.id, {
content: isUseAgentThought ? '' : newResponseItem.answer,
log: [

正在加载...
取消
保存