fix(config): fix summarization model alias resolution (#1378)

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
Admire
2026-03-26 14:48:45 +08:00
committed by GitHub
parent ae6a791c71
commit 080a03f3bc
2 changed files with 28 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ def _create_summarization_middleware() -> SummarizationMiddleware | None:
# Prepare model parameter
if config.model_name:
model = config.model_name
model = create_chat_model(name=config.model_name, thinking_enabled=False)
else:
# Use a lightweight model for summarization to save costs
# Falls back to default model if not explicitly specified