fix 4 optimize systemMsg and model default config values

This commit is contained in:
team 1
2026-04-24 19:52:35 +02:00
parent 2fd7977693
commit 9312562dd8
6 changed files with 313 additions and 9 deletions

View File

@@ -778,14 +778,15 @@ final readonly class AgentRunner
}
return match ($type) {
'answer' => ' '.$msg,
'answer' => $msg,
'err' => sprintf($this->agentRunnerConfig->getErrorHtmlTemplate(), $msg),
'think' => sprintf($this->agentRunnerConfig->getThinkHtmlTemplate(), $msg),
'info' => sprintf($this->agentRunnerConfig->getInfoHtmlTemplate(), $msg),
'debug' => sprintf(
$this->agentRunnerConfig->getDebugHtmlTemplate(),
htmlspecialchars($msg, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')
)
),
default => $msg,
};
}
}