ragflow/api/apps/sdk
Stephen Hu deb2faf7aa
Fix:Fail to get list_sessions (#7678)
### 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)
2025-05-16 10:58:28 +08:00
..
agent.py Feat: Add http api to create, update, or delete agents. (#7515) 2025-05-12 17:59:53 +08:00
chat.py Fix:Update chat assistant with an empty dataset (#7354) 2025-04-28 15:19:21 +08:00
dataset.py Refa: HTTP API delete dataset / test cases / docs (#7657) 2025-05-16 10:16:43 +08:00
dify_retrieval.py Code refactor (#5371) 2025-02-26 15:40:52 +08:00
doc.py Fix:Discrepancy between Document.list_chunks() API documentation and implementation (#7575) 2025-05-12 11:05:32 +08:00
session.py Fix:Fail to get list_sessions (#7678) 2025-05-16 10:58:28 +08:00