Gavin Zhao
Gavin Zhao
我浏览了一下代码,‘undefined’的问题应该是这里‘thought’没定义,给个初值就好了。 hooks/useX/index.ts:294 const newAgentThought = { conversation_id: parsedData.conversation_id, id: parsedData.id as string, task_id: parsedData.task_id, position: parsedData.position, tool: parsedData.tool, tool_input: parsedData.tool_input, observation: parsedData.observation, message_files: parsedData.message_files, message_id: parsedData.message_id, } as IAgentThought
Dify-chat: 0.5.5 (debug mode) Dify: 1.8.1 复现如下: DSL: [TestAgent.yml](https://github.com/user-attachments/files/22396433/TestAgent.yml)
临时修改了这里解决了我遇到的上述问题。 react-app/src/hooks/useX/index.ts ` // 记录对话和消息 ID let conversationId = latestProps.current.conversationId || '' let messageId = '' while (reader) { const { value: chunk, done } = await reader.read() if (done)...
@lexmin0412 我贡献一个窗口伸缩吧,见我的更新。我不擅长react,就不直接PR了。