This commit is contained in:
Timothy Jaeryang Baek
2026-07-01 03:37:35 -05:00
parent 2e5b094cea
commit 90eca2ac25
66 changed files with 253 additions and 80 deletions
+1 -3
View File
@@ -1344,9 +1344,7 @@ async def chat_completion(
user_message = metadata.get('user_message') or {}
selected_chat_models = user_message.get('models') if isinstance(user_message, dict) else None
if not isinstance(selected_chat_models, list) or not selected_chat_models:
selected_chat_models = [
entry.get('model_id') for entry in message_ids if entry.get('model_id')
]
selected_chat_models = [entry.get('model_id') for entry in message_ids if entry.get('model_id')]
# Persist chat-level fields the frontend used to save on every message.
# The old frontend saveChatHandler did this on every message;