Explorar el Código

fix: agent moderation not working (#20673)

tags/1.4.2
Novice hace 5 meses
padre
commit
0ccf8cb23e
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      web/app/components/base/chat/chat/hooks.ts

+ 1
- 1
web/app/components/base/chat/chat/hooks.ts Ver fichero

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

Cargando…
Cancelar
Guardar