ragflow/api
dylan 9d9f2dacd2
fix Conversation roles must alternate user/assistant/user/assistant/... bug (#6880)
### 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):
2025-04-09 17:21:27 +08:00
..
apps fix Conversation roles must alternate user/assistant/user/assistant/... bug (#6880) 2025-04-09 17:21:27 +08:00
db Feat: add primitive support for function calls (#6840) 2025-04-08 16:09:03 +08:00
utils Feat: add primitive support for function calls (#6840) 2025-04-08 16:09:03 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
constants.py Add more web test cases (#3702) 2024-11-28 15:46:35 +08:00
ragflow_server.py Optimize graphrag again (#6513) 2025-03-26 15:34:42 +08:00
settings.py Feat: Add user registration toggle feature (#6327) 2025-03-21 09:38:15 +08:00
validation.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
versions.py Fix VERSION 2024-12-07 16:56:34 +08:00