瀏覽代碼

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: [

Loading…
取消
儲存