[PR #3127] [MERGED] Add xAI image reference support #5808

Closed
opened 2026-10-22 04:19:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3127
Author: @thetopham
Created: 7/2/2026
Status: ✅ Merged
Merged: 7/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/xai-reference-images


📝 Commits (1)

  • 6025d13 Add xAI image reference support

📊 Changes

1 file changed (+26 additions, -9 deletions)

View changed files

📝 packages/server/src/services/image/image-generation.ts (+26 -9)

📄 Description

Linked issue

Closes #3130

Why this change

  • xAI image generation currently does not accept reference images through Marinara's image provider path, so features that pass character or scene references cannot use xAI for reference-guided generation.

What changed

  • Reuses Marinara's existing reference-image normalization path for xAI image requests.
  • Uses the xAI image edit endpoint when reference images are present.
  • Keeps text-only xAI generation on the existing generation endpoint.
  • Caps xAI reference inputs to three images.
  • Improves error wording so xAI edit failures are distinguished from generation failures.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Ran pnpm.cmd --filter @marinara-engine/server lint.
  • Ran pnpm.cmd --filter @marinara-engine/shared build.
  • Ran pnpm.cmd --filter @marinara-engine/server build.
  • pnpm check, container build, and live xAI reference-image generation were not run in this environment.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No version-bearing files are touched.

UI evidence (if applicable)

Not applicable; this is a server/provider request-shaping change.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3127 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/2/2026 **Status:** ✅ Merged **Merged:** 7/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/xai-reference-images` --- ### 📝 Commits (1) - [`6025d13`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6025d13d28945f9a9e68a5ec5875b7b39ae80619) Add xAI image reference support ### 📊 Changes **1 file changed** (+26 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/image/image-generation.ts` (+26 -9) </details> ### 📄 Description ## Linked issue Closes #3130 ## Why this change - xAI image generation currently does not accept reference images through Marinara's image provider path, so features that pass character or scene references cannot use xAI for reference-guided generation. ## What changed - Reuses Marinara's existing reference-image normalization path for xAI image requests. - Uses the xAI image edit endpoint when reference images are present. - Keeps text-only xAI generation on the existing generation endpoint. - Caps xAI reference inputs to three images. - Improves error wording so xAI edit failures are distinguished from generation failures. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Ran `pnpm.cmd --filter @marinara-engine/server lint`. - Ran `pnpm.cmd --filter @marinara-engine/shared build`. - Ran `pnpm.cmd --filter @marinara-engine/server build`. - `pnpm check`, container build, and live xAI reference-image generation were not run in this environment. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No version-bearing files are touched. ## UI evidence (if applicable) Not applicable; this is a server/provider request-shaping change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:19:42 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5808
No description provided.