mirror of https://github.com/Mai-with-u/MaiBot.git
fix:移除vlm的生成限制
parent
bd5fc8969b
commit
fa682ec38f
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue