Skip to content

Deduplicate images in code generation requests - #2

Draft
sandeliM wants to merge 1 commit into
FreedomIntelligence:mainfrom
sandeliM:fix/image-dedup
Draft

sandeliM wants to merge 1 commit into
FreedomIntelligence:mainfrom
sandeliM:fix/image-dedup

Conversation

@sandeliM

Copy link
Copy Markdown

Tutorial images and evidence images can contain identical attachments,
increasing the request size and token budget estimate.

This change deduplicates identical inline image URLs with matching detail
options before constructing the code generation payload. It preserves source
labels, adds alias mappings, and records deduplication counts in request metadata.

Fix duplicate images in code generation requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant