mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1500] [MERGED] feat(image-gen): native Google Gemini (Nano Banana) image provider #5113
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#5113
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/1500
Author: @aeriondyseti
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @SpicyMarinara
Base:
refactor← Head:feature/nano-banana-image-gen📝 Commits (4)
b44375cfeat(image-gen): add native Google Gemini (Nano Banana) image provider7887cc1Merge branch 'refactor' into feature/nano-banana-image-gen060937eMerge branch 'refactor' into feature/nano-banana-image-gen3b5654bWarn when Imagen ignores reference images📊 Changes
10 files changed (+5605 additions, -6371 deletions)
View changed files
📝
graphify-out/.graphify_labels.json(+1 -8)📝
graphify-out/GRAPH_REPORT.md(+326 -343)➕
graphify-out/cache/ast/0c468d13d6693ca5eb6c25a89b5393d4b6bee311d688509e699b5b3ea4d1b183.json(+1 -0)➕
graphify-out/cache/ast/bf8fdc4705730c34965d8b0fbe834d0e3c51db5128e6101d3d8b4e102bcd18d8.json(+1 -0)📝
graphify-out/cache/stat-index.json(+1 -1)📝
graphify-out/graph.json(+3857 -4822)📝
graphify-out/manifest.json(+1140 -1195)📝
src-tauri/src/commands/storage/images/providers.rs(+239 -1)📝
src-tauri/src/commands/storage/llm.rs(+20 -0)📝
src/engine/contracts/constants/model-lists.ts(+19 -1)📄 Description
Linked issue
Closes #1507
Why this change
Google AI Studio image-generation keys were being routed through the existing OpenRouter-style Gemini image path. That sent the wrong endpoint shape and bearer auth, so native Google Gemini / Imagen image generation could not work correctly from Marinara image connections.
What changed
google_imageprovider path for Google's Generative Language API.generateContentwith image response modalities.predictwith fixed aspect-ratio mapping.x-goog-api-key.Refactor impact
Primary owner:
Rust storage / image generation provider transport, connection testing, image-generation model catalog.
Impact areas reviewed:
Image-generation provider source detection, Google image request payloads, Google connection tests, frontend model/service selection.
Boundary notes:
Provider transport stays in
src-tauri; frontend changes only update connection defaults/model lists. No engine-to-React boundary changes.Pressure points touched:
src-tauri/src/commands/storage/images/providers.rs,src-tauri/src/commands/storage/llm.rs,src/engine/contracts/constants/model-lists.ts.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Original author verified in
tauri devagainst a real Google AI Studio key: connection test passed, and image generation returned forgemini-2.5-flash-imageplus Gemini 3.x image models.Maintainer follow-up verified
cargo check --manifest-path src-tauri/Cargo.toml --workspaceandcargo fmt --manifest-path src-tauri/Cargo.toml --all --checkafter adding the Imagen reference-image warning.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
No visible UI layout changes; connection/model list changes are covered by the service/model entries and manual native app verification above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.