mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6952] [MERGED] feat(image): add ChatGPT (Codex login) image generation #7399
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#7399
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/6952
Author: @SpicyMarinara
Created: 10/1/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/codex-image-connection📝 Commits (5)
8032686feat(image): add ChatGPT (Codex login) image generation servicef77fde9docs(image): note that not every cloud image service needs an API keya560ac8Merge remote-tracking branch 'origin/staging' into feat/codex-image-connectionac13d56fix(connections): forget the image service when the provider changes5059c97Merge remote-tracking branch 'origin/staging' into feat/codex-image-connection📊 Changes
9 files changed (+311 additions, -9 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
docs/media/image-providers.md(+11 -1)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+27 -5)📝
packages/client/src/localization/locales/en.json(+4 -0)📝
packages/server/src/routes/connections.routes.ts(+14 -0)📝
packages/server/src/services/image/image-generation.ts(+91 -3)📝
packages/server/src/services/mari-db/mari-images.service.ts(+4 -0)📝
packages/shared/src/constants/model-lists.ts(+13 -0)➕
scripts/regressions/codex-chatgpt-image.regression.ts(+143 -0)📄 Description
Linked issue
Closes #6884
Why this change
People who pay for ChatGPT and already use Codex still needed OpenAI Platform credits to make images in Marinara. @prisoner310 built a working prototype that reuses the
codex loginsession and offered it for reuse. This is a smaller version of it that fits the existing image code.What changed
openai-chatgpt-auth.ts), so there's no second login implementation./images/generations, or/images/editswhen there are reference images, with up to 16 references like the OpenAI provider.https://chatgpt.com, which is checked on every redirect.gpt-image-2.docs/media/image-providers.md), a CHANGELOG entry, and credit to prisoner310 as co-author.These can come later if they turn out to be needed.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Not tested against a real ChatGPT account. Everything below used a throwaway Codex login and a fake server. Whether the endpoint accepts these sizes, honors the aspect hint, takes 16 references and returns transparency rests on prisoner310's real-account testing and Codex's own source.
What I ran (not a replacement for the checklist):
pnpm check,pnpm version:checkandpnpm smoke:ui(7/7) pass.codex-chatgpt-image.regression.tscovers:To check by hand (needs a ChatGPT plan and
codex loginon the server machine):codex login.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/media/image-providers.mdgains a ChatGPT (Codex login) section. The translated packs will be updated in onedocs-i18nPR together with the other docs from this sweep.UI evidence (if applicable)
A temporary Playwright check (since deleted) passed on desktop Chromium, mobile Chromium and mobile WebKit. It covered the hidden fields, the hint, the login found and missing messages, and switching back to another service.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.