Merge pull request #1235 from CNMrSunshine/dev

fix:识图token限制 commit 没有修复完全
pull/1239/head
SengokuCola 2025-09-13 14:09:23 +08:00 committed by GitHub
commit 7fa8cbbaa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class ImageManager:
return "[表情包(GIF处理失败)]"
vlm_prompt = "这是一个动态图表情包,每一张图代表了动态图的某一帧,黑色背景代表透明,描述一下表情包表达的情感和内容,描述细节,从互联网梗,meme的角度去分析"
detailed_description, _ = await self.vlm.generate_response_for_image(
vlm_prompt, image_base64_processed, "jpg", temperature=0.4, max_tokens=300
vlm_prompt, image_base64_processed, "jpg", temperature=0.4
)
else:
vlm_prompt = (