mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-22 05:57:09 +08:00

### What problem does this PR solve? Close #7655 Based on the codes atthe api_app, I think the reference is one-to-one with the message ` def fillin_conv(ans): nonlocal conv, message_id if not conv.reference: conv.reference.append(ans["reference"]) else: conv.reference[-1] = ans["reference"] conv.message[-1] = {"role": "assistant", "content": ans["answer"], "id": message_id} ans["id"] = message_id ` ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)