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

@ -320,7 +320,7 @@ class AgentPattern(ABC):
def _create_text_chunk(self, text: str, prompt_messages: list[PromptMessage]) -> LLMResultChunk:
"""Create a text chunk for streaming."""
return LLMResultChunk(
model=self.model_instance.model,
model=self.model_instance.model_name,
prompt_messages=prompt_messages,
delta=LLMResultChunkDelta(
index=0,