fix: agent moderation not working (#20673)
This commit is contained in:
parent
837f769960
commit
0ccf8cb23e
1 changed files with 1 additions and 1 deletions
|
|
@ -366,7 +366,7 @@ export const useChat = (
|
||||||
if (!newResponseItem)
|
if (!newResponseItem)
|
||||||
return
|
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, {
|
updateChatTreeNode(responseItem.id, {
|
||||||
content: isUseAgentThought ? '' : newResponseItem.answer,
|
content: isUseAgentThought ? '' : newResponseItem.answer,
|
||||||
log: [
|
log: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue