Repository navigation
fix(vision): Describe 改传 base64 data URL - #59
Merged
Merged
Conversation
- 视觉修复:Describe 弃用内网 RustFS 预签名 URL(云端模型拉不到图,报 400), 改为图片字节内嵌 base64 data URL,与 GenerateTags 同款通道
- Describe/GenerateTags 移除 DisableThinkingOption:glm-5.3-flash 等模型 不支持 thinking.type=disabled,传了直接 400(thinking.type not supported) - /添加表情 恢复人工标签语法(/添加表情 标签1 标签2),sticker 插件摘除 vision 依赖;GenerateTags/parseStickerTags 无调用方随之删除, registry 的 vision 字段保留(random_beauty 插件仍在使用)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
动机
图片理解无法正常工作:
docker 内网地址(http://rustfs:9000),模型服务端无法解析拉取;
图片链接」之类的文字,被管线当作图片描述正常返回,问题被掩盖了两个版本;
主要变更
Describe签名从(ctx, imageURL string)改为(ctx, imageData []byte, mime string),图片以 data URL 内嵌请求,不再依赖对象存储对模型服务端可达;
mime空时兜底 image/png;Generate 调用加
llm.DisableThinkingOption()(与 GenerateTags 一致,视觉模型若为推理模型,思考会拖慢响应且可能只思考不输出正文)
直接传已下载的
data, mime;Presign方法保留(welcome / sticker的图片发送路径仍在使用)
验证
base64 data URL → 正常输出图片描述,确认修复通道有效