mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-21 05:29:57 +08:00

### 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):