优化消息渲染中的上传文件。不过滤表单工具yxd_tool_name": "sendFrom",气泡渲染表单工具。
This commit is contained in:
@@ -101,7 +101,7 @@ export const getConversationMessages = async (token, conversation_id, size, page
|
||||
uni.setStorageSync('workspace_id', messagesInfo.workspace_id)
|
||||
}
|
||||
const filtered = (messagesInfo.messages || []).filter(
|
||||
m => m.role !== 'tool'
|
||||
m => m.role !== 'tool' || m.yxd_tool_name === 'sendFrom'
|
||||
)
|
||||
resolve(filtered)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user