fix:移除vlm的生成限制
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user