[PR #6685] [MERGED] feat(connections): add the newest Gemini models and fix image model l… #7285

Closed
opened 2026-10-23 04:18:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6685
Author: @SonaGat3
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @SonaGat3

Base: staging ← Head: fix/6683-gemini-model-list


📝 Commits (4)

  • eb95ed4 feat(connections): add the newest Gemini models and fix image model limits
  • a46a0cc Merge branch 'staging' into fix/6683-gemini-model-list
  • fbab8f1 Merge branch 'staging' into fix/6683-gemini-model-list
  • 8265178 test(mari): keep the uncatalogued Gemini fixture out of the catalog

📊 Changes

3 files changed (+16 additions, -8 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/shared/src/constants/model-lists.ts (+12 -6)
📝 scripts/regressions/mari-completion-frames.regression.ts (+2 -2)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #6683

Why this change

  • The Google list stopped at Gemini 3.6 Flash, so 3.8 Flash, 3.7 Flash and 3.5 Flash-Lite arrive as unknown models.
  • That is not cosmetic. For a provider that ships a catalog, an unknown model has its parameters suppressed, so Reasoning Effort and Max Output Tokens show as "Effective: not sent — provider requirement" even though the model accepts both, and the model's context window is unknown to context fitting. The reporter hit exactly this on gemini-3.7-flash.
  • While checking the catalog, the existing Gemini image entries turned out to carry limits that predate Google's current values.

What changed

Added, with the limits Google documents:

Model Context Max output
gemini-3.8-flash 1,000,000 65,536
gemini-3.7-flash 1,000,000 65,536
gemini-3.5-flash-lite 1,000,000 65,536
gemini-3.1-flash-lite-image 65,536 4,096

Corrected:

Model Before Now
gemini-3.1-flash-image 65,535 / 8,192 131,072 / 32,768
gemini-3-pro-image 65,535 / 8,192 65,536 / 32,768
gemini-2.5-flash-image 32,767 / 8,192 65,536 / 32,768

The three -preview aliases of those image models were aligned with their stable counterparts; Google documents the model, not each alias.

Sources for every number: Gemini API model reference (per-model pages), what's new in 3.8 Flash, and the DeepMind model cards for 3.7 Flash and 3.5 Flash-Lite.

Deliberately left out, because this list only carries text and image models: the TTS variants, the Live API models, transcription, Veo, gemini-omni-1.1-flash (video), embeddings, robotics, computer use and deep research.

Also updated the mari-completion-frames fixture: it used gemini-3.8-flash as its example of an uncatalogued model, which this PR adds to the catalog. It now uses an id no catalog will carry, so adding future models can't break it again.

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

  • pnpm check: passes (exit 0).
  • Every value was read from Google's own documentation rather than inferred from neighbouring entries. Where a per-model page and a model card disagreed, the API model reference was used, since that is the limit the endpoint enforces.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not applicable: the connection window shows the list it is given.

Summary by CodeRabbit

  • New Features
    • Added Gemini 3.8 Flash, Gemini 3.7 Flash, Gemini 3.5 Flash-Lite, and Gemini 3.1 Flash-Lite Image to the Google model list, with their supported context and output limits.
  • Bug Fixes
    • Corrected context and output limits for Gemini 3.1 Flash Image, Gemini 3 Pro Image, and Gemini 2.5 Flash Image.

🔄 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/6685 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 9/25/2026 **Status:** ✅ Merged **Merged:** 9/25/2026 **Merged by:** [@SonaGat3](https://github.com/SonaGat3) **Base:** `staging` ← **Head:** `fix/6683-gemini-model-list` --- ### 📝 Commits (4) - [`eb95ed4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eb95ed4a7b72ee31afa5f8b11d4d3991c21c4486) feat(connections): add the newest Gemini models and fix image model limits - [`a46a0cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a46a0cca8d708f093ba1877c91e479f4e0e78a4b) Merge branch 'staging' into fix/6683-gemini-model-list - [`fbab8f1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fbab8f1d75ac923d78e32da92a2cfc862e11ac41) Merge branch 'staging' into fix/6683-gemini-model-list - [`8265178`](https://github.com/Pasta-Devs/Marinara-Engine/commit/82651782b327676893577f9f383143ce45af44bd) test(mari): keep the uncatalogued Gemini fixture out of the catalog ### 📊 Changes **3 files changed** (+16 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/shared/src/constants/model-lists.ts` (+12 -6) 📝 `scripts/regressions/mari-completion-frames.regression.ts` (+2 -2) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #6683 ## Why this change - The Google list stopped at Gemini 3.6 Flash, so 3.8 Flash, 3.7 Flash and 3.5 Flash-Lite arrive as unknown models. - That is not cosmetic. For a provider that ships a catalog, an unknown model has its parameters suppressed, so Reasoning Effort and Max Output Tokens show as "Effective: not sent — provider requirement" even though the model accepts both, and the model's context window is unknown to context fitting. The reporter hit exactly this on `gemini-3.7-flash`. - While checking the catalog, the existing Gemini image entries turned out to carry limits that predate Google's current values. ## What changed Added, with the limits Google documents: | Model | Context | Max output | | --- | --- | --- | | `gemini-3.8-flash` | 1,000,000 | 65,536 | | `gemini-3.7-flash` | 1,000,000 | 65,536 | | `gemini-3.5-flash-lite` | 1,000,000 | 65,536 | | `gemini-3.1-flash-lite-image` | 65,536 | 4,096 | Corrected: | Model | Before | Now | | --- | --- | --- | | `gemini-3.1-flash-image` | 65,535 / 8,192 | 131,072 / 32,768 | | `gemini-3-pro-image` | 65,535 / 8,192 | 65,536 / 32,768 | | `gemini-2.5-flash-image` | 32,767 / 8,192 | 65,536 / 32,768 | The three `-preview` aliases of those image models were aligned with their stable counterparts; Google documents the model, not each alias. Sources for every number: [Gemini API model reference](https://ai.google.dev/gemini-api/docs/models) (per-model pages), [what's new in 3.8 Flash](https://ai.google.dev/gemini-api/docs/latest-model), and the DeepMind model cards for [3.7 Flash](https://deepmind.google/models/model-cards/gemini-3-7-flash/) and [3.5 Flash-Lite](https://deepmind.google/models/model-cards/gemini-3-5-flash-lite/). Deliberately left out, because this list only carries text and image models: the TTS variants, the Live API models, transcription, Veo, `gemini-omni-1.1-flash` (video), embeddings, robotics, computer use and deep research. Also updated the mari-completion-frames fixture: it used gemini-3.8-flash as its example of an uncatalogued model, which this PR adds to the catalog. It now uses an id no catalog will carry, so adding future models can't break it again. ## Validation - [x] `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) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `pnpm check`: passes (exit 0). - Every value was read from Google's own documentation rather than inferred from neighbouring entries. Where a per-model page and a model card disagreed, the API model reference was used, since that is the limit the endpoint enforces. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not applicable: the connection window shows the list it is given. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Gemini 3.8 Flash, Gemini 3.7 Flash, Gemini 3.5 Flash-Lite, and Gemini 3.1 Flash-Lite Image to the Google model list, with their supported context and output limits. * **Bug Fixes** * Corrected context and output limits for Gemini 3.1 Flash Image, Gemini 3 Pro Image, and Gemini 2.5 Flash Image. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:15 +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#7285
No description provided.