fix 3 optimize systemMsg and model default config values

This commit is contained in:
team 1
2026-04-24 19:08:35 +02:00
parent c439fb99d6
commit 2fd7977693
2 changed files with 9 additions and 10 deletions

View File

@@ -778,15 +778,14 @@ 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,
)
};
}
}