Repository navigation
feat(api): add ZenMux image generation support - #15670
Merged
diegosouzapw merged 2 commits intoOct 7, 2026
Merged
diegosouzapw merged 2 commits into
diegosouzapw merged 2 commits into
Conversation
JeanRGW
marked this pull request as ready for review
October 6, 2026 16:56
diegosouzapw
merged commit Oct 7, 2026
d7b59c3
into
cheaper-inference:release/v3.8.52
3 checks passed
diegosouzapw
added a commit
that referenced
this pull request
Oct 7, 2026
Records the Onda A quality drift on the post-squash tip. Product squashes do not carry the baseline.
File-size ceilings inside `frozen`, measured with `split("\n").length`:
- `EditConnectionModal.tsx` 1631 → 1634 (#14907)
- `open-sse/executors/default.ts` 1209 → 1213 (#15576)
- `open-sse/handlers/imageGeneration.ts` 3334 → 3346 (#15670)
- `open-sse/services/claudeCodeCompatible.ts` new freeze 1245 (#15457)
- `open-sse/services/combo/executeTargetAttempt.ts` 1273 → 1280 (#15594)
- `open-sse/services/combo/roundRobinCombo.ts` 1285 → 1288 (#15594)
Narrow i18n adopt, hashes only, for the five docs this wave edited: `docs/DEVIN_CLAUDE_BRIDGE.md`, `docs/architecture/RESILIENCE_GUIDE.md`, `docs/guides/SETUP_GUIDE.md`, `docs/guides/TROUBLESHOOTING.md`, `docs/reference/API_REFERENCE.md`.
`node scripts/check/check-file-size.mjs` passed. `node scripts/i18n/check-translation-drift.mjs` passed after the adopt. The legacy string map was not edited.
⚠️ base-red inherited: #15306
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.
Summary
zenmux/andzm/routing to/v1/images/generations, reusing the existing ZenMux API-key connection.:predict(instances/parameters) and normalizepredictionsinto OpenAI image responses.Related Issues
Validation
npm run lintrelease/v3.8.52,2d6d630f); focused checks rerun afterwardPassed locally:
node --import tsx/esm --test --experimental-test-coverage --test-coverage-include='**/imageGeneration/providers/zenmux.ts' tests/unit/zenmux-image-generation.test.ts tests/unit/image-generation-handler.test.ts npm run typecheck:core npm run lint npm run check:provider-consistency npm run check:provider-assets npm run check:docs-allComSpecon Windows (the env-doc scanner invokes POSIX shell commands).npm run gen:provider-referencewas checked: it does not consume the image registry and produced only unrelated pre-existing documentation drift; that generated drift is not included.provider-translate-path-golden.test.ts: 2 passed / 1 failed locally. The only differences are the existing GitHub/GHE Copilotuser-agentvalues containing(win32)instead of the committed(linux)snapshot; its sources and snapshot are unchanged. No golden regeneration is included.Tests Added Or Updated
tests/unit/zenmux-image-generation.test.ts: provider/alias/catalog resolution, both endpoint protocols, dimensions and output settings, Ming restrictions, invalid requests, malformed/empty/filtered responses, sanitized HTTP/network errors, timeout, cancellation, and safe URL-to-base64 conversion without credential forwarding. Tests drain pending call logs and close temporary DB handles.Coverage Notes
Reviewer Notes
sizeis translated to its exact aspect ratio only;image_sizesupplies an explicit resolution tier. Actual dimensions, allowed ratios, counts, and model availability remain upstream/model-specific.response_format: "url"can return a base64 data URL when upstream returns only image bytes.