diff --git a/src/chat/utils/utils_image.py b/src/chat/utils/utils_image.py index deba60a4..601373a1 100644 --- a/src/chat/utils/utils_image.py +++ b/src/chat/utils/utils_image.py @@ -273,7 +273,7 @@ class ImageManager: prompt = global_config.personality.visual_style logger.info(f"[VLM调用] 为图片生成新描述 (Hash: {image_hash[:8]}...)") description, _ = await self.vlm.generate_response_for_image( - prompt, image_base64, image_format, temperature=0.4, max_tokens=300 + prompt, image_base64, image_format, temperature=0.4 ) if description is None: @@ -570,7 +570,7 @@ class ImageManager: # 获取VLM描述 description, _ = await self.vlm.generate_response_for_image( - prompt, image_base64, image_format, temperature=0.4, max_tokens=300 + prompt, image_base64, image_format, temperature=0.4 ) if description is None: diff --git a/template/model_config_template.toml b/template/model_config_template.toml index c97a6579..9f2b05d5 100644 --- a/template/model_config_template.toml +++ b/template/model_config_template.toml @@ -1,5 +1,5 @@ [inner] -version = "1.7.4" +version = "1.7.5" # 配置文件版本号迭代规则同bot_config.toml @@ -120,7 +120,7 @@ max_tokens = 800 [model_task_config.vlm] # 图像识别模型 model_list = ["qwen2.5-vl-72b"] -max_tokens = 800 +max_tokens = 256 [model_task_config.voice] # 语音识别模型 model_list = ["sensevoice-small"]