From 0ce665578981236d903b4c497a03abead7ee2dd8 Mon Sep 17 00:00:00 2001 From: Wang Qi Date: Mon, 25 May 2026 10:47:08 +0800 Subject: [PATCH] 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) --- api/apps/restful_apis/chat_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/restful_apis/chat_api.py b/api/apps/restful_apis/chat_api.py index 33fb74acf9..51431e1df5 100644 --- a/api/apps/restful_apis/chat_api.py +++ b/api/apps/restful_apis/chat_api.py @@ -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 = {}