mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5747] [MERGED] fix(image-gen): default OpenRouter image requests to image-only modalities #6915
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6915
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5747
Author: @Nelathan
Created: 9/2/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/openrouter-image-modalities📝 Commits (4)
ec48960fix(image-gen): default OpenRouter image requests to image-only modalities44bfddetest(image-gen): assert OpenRouter image requests pick the right modalitiescc179caMerge staging and refresh OpenRouter modality regression coverage5dd60c5Merge remote-tracking branch 'origin/staging' into fix/openrouter-image-modalities📊 Changes
3 files changed (+77 additions, -10 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/services/image/image-generation.ts(+10 -10)📝
scripts/regressions/provider-compat.regression.ts(+66 -0)📄 Description
Linked issue
Closes #6079.
Why this change
OpenRouter image-only models outside the old vendor list, including Microsoft MAI and Grok Imagine, receive a request for both image and text and fail with unsupported-output-modality errors. Image generation should request only outputs that the selected model supports.
What changed
Validation
Automated maintainer verification (Codex-assisted, 2026-09-12):
pnpm installandpnpm checkpassed.microsoft/mai-image-2.5, then passes with this patch.node scripts/run-regressions.mjs --filter scripts/regressions/provider-compat.regression.tspassed.node scripts/run-regressions.mjs --filter scripts/regressions/openrouter-image-endpoint.regression.tspassed, including dedicated routing, explicit endpoint fallback, and non-retryable auth/rate-limit/server failures.node scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.tspassed.roleplay exposes reasoning and explains unavailable saved summariestest passed locally in mobile WebKit on the refreshed branch (1 passed).The checkboxes below remain a human-maintainer checklist, as required by
AGENTS.md.pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
No paid-provider generation or manual browser verification was repeated in this maintainer pass. The contributor reported successful live Flux, MAI, Grok, and Gemini generations on 2026-09-02 in the original PR description. Those are contributor-reported results. The original Qwen endpoint limitation has since been fixed separately in #5750.
Docs and release impact
Added an
[Unreleased]changelog entry for #6079. No user-facing configuration, documentation, or release-version changes.docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
No UI changes. This PR changes the server's provider request shape only.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.