Skip to content

fix(image-translation): send image bytes directly to Tencent - #2725

Merged
Tlaster merged 1 commit into
masterfrom
codex/fix-tencent-image-translation-data
Oct 31, 2026
Merged

Tlaster merged 1 commit into
masterfrom
codex/fix-tencent-image-translation-data

Conversation

@Tlaster

@Tlaster Tlaster commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Tencent image translation can reject remote-image URL requests with InvalidParameter: Data: is required in both Pro and Lite. Send the existing locally prepared image as Base64 Data on the first request, preserving validation/compression, size limits, signing, throttling, and provider diagnostics.

Add a Pro/Lite regression that requires prepared image bytes in a single request, and update recovery fixtures to verify that the source image is downloaded only once.

Validation:

  • 34 focused JVM tests passed: ImageTranslationAdaptersTest, ImageTranslationDiagnosticsTest, and ImageTranslationRecoveryTest.
  • Scoped ktlint format/check and git diff --check passed for the three changed files.
  • Full commonMain ktlint reports existing violations in unchanged files.
  • Live Tencent API and physical-device validation were not run.

@Tlaster
Tlaster merged commit 840af24 into master Oct 31, 2026
1 check passed
@Tlaster
Tlaster deleted the codex/fix-tencent-image-translation-data branch October 31, 2026 13:00
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