配置模板截图视口参数并输出生效值日志
This commit is contained in:
@@ -117,6 +117,13 @@ class MessageSummaryPlugin(MessagePluginInterface):
|
||||
self._template_viewport_width = int(output_config.get("template_viewport_width", 780))
|
||||
self._template_viewport_height = int(output_config.get("template_viewport_height", 960))
|
||||
self._template_device_scale_factor = float(output_config.get("template_device_scale_factor", 1.2))
|
||||
# 启动时输出模板截图视口参数,便于排查“配置未生效仍是 780 宽”的问题。
|
||||
self.LOG.info(
|
||||
f"[{self.name}] 模板截图视口: "
|
||||
f"width={self._template_viewport_width}, "
|
||||
f"height={self._template_viewport_height}, "
|
||||
f"scale={self._template_device_scale_factor}"
|
||||
)
|
||||
self.llm_client = UnifiedLLMClient(api_config)
|
||||
self._api_mode = self.llm_client.mode or self._api_mode
|
||||
self._response_mode = self.llm_client.response_mode or self._response_mode
|
||||
|
||||
Reference in New Issue
Block a user