fix:移除vlm的生成限制

pull/1318/head
SengokuCola 2025-10-25 15:59:11 +08:00
parent bd5fc8969b
commit fa682ec38f
2 changed files with 4 additions and 4 deletions

View File

@ -273,7 +273,7 @@ class ImageManager:
prompt = global_config.personality.visual_style prompt = global_config.personality.visual_style
logger.info(f"[VLM调用] 为图片生成新描述 (Hash: {image_hash[:8]}...)") logger.info(f"[VLM调用] 为图片生成新描述 (Hash: {image_hash[:8]}...)")
description, _ = await self.vlm.generate_response_for_image( 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: if description is None:
@ -570,7 +570,7 @@ class ImageManager:
# 获取VLM描述 # 获取VLM描述
description, _ = await self.vlm.generate_response_for_image( 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: if description is None:

View File

@ -1,5 +1,5 @@
[inner] [inner]
version = "1.7.4" version = "1.7.5"
# 配置文件版本号迭代规则同bot_config.toml # 配置文件版本号迭代规则同bot_config.toml
@ -120,7 +120,7 @@ max_tokens = 800
[model_task_config.vlm] # 图像识别模型 [model_task_config.vlm] # 图像识别模型
model_list = ["qwen2.5-vl-72b"] model_list = ["qwen2.5-vl-72b"]
max_tokens = 800 max_tokens = 256
[model_task_config.voice] # 语音识别模型 [model_task_config.voice] # 语音识别模型
model_list = ["sensevoice-small"] model_list = ["sensevoice-small"]