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:
Wang Qi
2026-05-25 10:47:08 +08:00
committed by GitHub
parent 50424df48e
commit 0ce6655789

View File

@@ -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 = {}