mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-22 06:06:40 +08:00
feat: display name instead of key in user fillup form submission (#11931)
### What problem does this PR solve? - Change the message format from 'key: value' to 'name: value' when user submits the fillup form in agent chat. - This resolves #11865 - I think this change makes sense, better aligning the form and the replied message. ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -327,7 +327,7 @@ export const useSendAgentMessage = ({
|
||||
async (body: { id?: string; inputs: Record<string, BeginQuery> }) => {
|
||||
addNewestOneQuestion({
|
||||
content: Object.entries(body.inputs)
|
||||
.map(([key, val]) => `${key}: ${val.value}`)
|
||||
.map(([, val]) => `${val.name}: ${val.value}`)
|
||||
.join('<br/>'),
|
||||
role: MessageType.User,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user