Repository navigation
fix: drop unsupported inline media in assistant history - #336
Merged
Merged
Conversation
- 补齐上游直接接受的归档、办公文档与 WAV 别名类型,按解析后的基础类型判定并原样保留文本与裸音频参数 - 在计数路径保留过滤前后的轮次与片段位置映射,返回时为丢弃的片段与空模型轮补零对齐 - 将生成入口的过滤移至输入账本记录之后、预校验与上传之前,保持原请求摘要并避免无效附件进入上传阶段
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.
改动 / Changes
DropUnsupportedAssistantMediaininternal/aistudio/turns.go: parses MIME types withmime.ParseMediaType, retainstext/*,image/*,audio/*,video/*,application/pdf,application/json, andapplication/x-ipynb+jsoninline media in assistant history turns, preserves attached thought signatures, and omits empty turns from upstream requests.DropUnsupportedAssistantMediaintrackedService.Generate(internal/app/runtime.go),normalizeTurns(internal/aistudio/turns.go), andPooledService.CountTokens(internal/aistudio/service.go).验证 / Verification
go vet ./...go test -p 1 -mod=readonly ./cmd/... ./internal/...text/x-pythonandapplication/octet-streamartifacts; the request completes and history attachments display in the UI.