소스 검색

fix: agent thought replaced by response text (#20571)

tags/1.4.2
Joel 5 달 전
부모
커밋
744159a079
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      web/app/components/base/chat/chat/hooks.ts

+ 2
- 1
web/app/components/base/chat/chat/hooks.ts 파일 보기

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

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

Loading…
취소
저장