refactor: update model attribute references from 'model' to 'model_name' across multiple files and introduce new fetch_model_config function in llm_utils.py

This commit is contained in:
Novice
2026-03-23 21:17:43 +08:00
parent ee81ea882b
commit ed1bd338f1
23 changed files with 640 additions and 175 deletions

View File

@ -71,7 +71,7 @@ class FunctionCallStrategy(AgentPattern):
# On last iteration, remove tools to force final answer
current_tools: list[PromptMessageTool] = [] if iteration_step == max_iterations else prompt_tools
model_log = self._create_log(
label=f"{self.model_instance.model} Thought",
label=f"{self.model_instance.model_name} Thought",
log_type=AgentLog.LogType.THOUGHT,
status=AgentLog.LogStatus.START,
data={},