### What problem does this PR solve? The old logic filters out all assistant messages from messages, which, in multi-turn conversations, results in only user messages being retained. This leads to an error in locally deployed models: Conversation roles must alternate user/assistant/user/assistant/... ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): |
||
|---|---|---|
| .. | ||
| apps | ||
| db | ||
| utils | ||
| __init__.py | ||
| constants.py | ||
| ragflow_server.py | ||
| settings.py | ||
| validation.py | ||
| versions.py | ||