fix mapping

This commit is contained in:
2026-06-16 10:03:14 +03:00
parent c69186c13b
commit b1506f8695
3 changed files with 13 additions and 6 deletions
+6 -1
View File
@@ -230,8 +230,13 @@ class LLMClient:
visible_reply: bool = False,
) -> dict[str, Any]:
use_tools = bool(tools) and self.tools_enabled and not for_extraction
chosen_model = model
if chosen_model:
from app.config import resolve_extract_model
chosen_model = resolve_extract_model(chosen_model) or None
kwargs: dict[str, Any] = {
"model": model or self.model,
"model": chosen_model or self.model,
"messages": messages,
"temperature": temperature,
}