fix:识图token限制

pull/1220/head
SengokuCola 2025-09-12 13:46:10 +08:00
parent cb373a373b
commit 3900684ffd
1 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ class ImageManager:
"这是一个表情包,请详细描述一下表情包所表达的情感和内容,描述细节,从互联网梗,meme的角度去分析"
)
detailed_description, _ = await self.vlm.generate_response_for_image(
vlm_prompt, image_base64, image_format, temperature=0.4, max_tokens=300
vlm_prompt, image_base64, image_format, temperature=0.4
)
if detailed_description is None:
@ -175,7 +175,7 @@ class ImageManager:
# 使用较低温度确保输出稳定
emotion_llm = LLMRequest(model_set=model_config.model_task_config.utils, request_type="emoji")
emotion_result, _ = await emotion_llm.generate_response_async(
emotion_prompt, temperature=0.3, max_tokens=50
emotion_prompt, temperature=0.3
)
if not emotion_result: