fix 4 optimize systemMsg and model default config values
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user