Background tasks: respect active session model fallback

This commit is contained in:
Tushar-Projects
2026-06-02 17:27:42 +05:30
committed by GitHub
parent 537b4bcff7
commit c3228f8b59
4 changed files with 55 additions and 6 deletions
+3
View File
@@ -149,6 +149,9 @@ async def auto_name_session(session_manager, sess):
t_url, t_model, t_headers = resolve_task_endpoint(
sess.endpoint_url, sess.model, sess.headers,
)
if not t_model:
logger.debug("[auto-name] No model provided, skipping")
return
# max_tokens big enough that reasoning models (Minimax M2,
# DeepSeek R1, QwQ, etc.) have headroom for <think>…</think>