mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-17 21:27:23 +08:00
Fix: /chat/completions not aware of conversation_id (#15162)
### What problem does this PR solve? Fix /chat/completions not aware of conversation_id ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -1071,7 +1071,7 @@ async def session_completion(chat_id_in_arg=""):
|
||||
message_id = msg[-1].get("id") if msg else None
|
||||
chat_id = req.pop("chat_id", "") or ""
|
||||
chat_id = chat_id or chat_id_in_arg
|
||||
session_id = req.pop("session_id", "") or ""
|
||||
session_id = req.pop("session_id", "") or req.pop("conversation_id", "") or ""
|
||||
chat_model_id = req.pop("llm_id", "")
|
||||
|
||||
chat_model_config = {}
|
||||
|
||||
Reference in New Issue
Block a user