[PR #7569] [MERGED] fix(gemini): hide ignored samplers for the newer Flash models and end user rewrites on the instruction #7803

Closed
opened 2026-10-24 04:07:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7569
Author: @SpicyMarinara
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/gemini-flash-samplers-user-rewrite


📝 Commits (3)

  • eb7ffc8 fix(gemini): drop ignored samplers for the newer Flash models and end user rewrites on the instruction
  • f5236d8 fix(gemini): keep the user rewrite instruction last and prove it through the route
  • ad2e753 test(gemini): wait for the database to close before removing the scratch folder

📊 Changes

8 files changed (+270 additions, -39 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+16 -2)
📝 packages/server/src/services/llm/providers/google.provider.ts (+8 -4)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+5 -5)
📝 packages/shared/src/constants/generation-parameter-relevance.ts (+3 -6)
📝 packages/shared/src/constants/model-lists.ts (+11 -4)
➕ scripts/regressions/gemini-user-regeneration.regression.ts (+171 -0)
📝 scripts/regressions/generation-parameter-relevance.regression.ts (+1 -0)
📝 scripts/regressions/provider-compat.regression.ts (+55 -18)

📄 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

Refs #7558. This is a follow-up to #7560, which closed that issue and was merged before these review fixes were ready.

Why this change

  • Samplers that do nothing. Google documents that Gemini 3.5 Flash-Lite and 3.6 to 3.8 Flash ignore temperature, top-p and top-k, the same way it documents this for Argon. #7560 kept that rule for Argon only. For these Flash models, the panel still showed sliders that change nothing, and every request still sent the values.
  • Argon's :online variant. On OpenRouter, google/gemini-4-argon:online got the other rules from #7560, but it still showed and sent those sliders.
  • User-message regeneration on OpenRouter, NanoGPT and custom Gemini. When you regenerate one of your own messages as a new swipe, the request should end on an instruction to rewrite your message. Only native Google and Vertex added that instruction. On the other connections the request ended on the AI's last reply:
    • Since #7560, the newer Gemini models get a "continue the assistant's reply" turn at that point.
    • Older Gemini models on OpenRouter treat a final AI turn as a prefill.
    • In both cases the model continued the AI's reply, and Marinara saved that text as your swipe.

What changed

Behaviour that changes for things that worked before:

  • Temperature, Top P and Top K are hidden and no longer sent for Gemini 3.5 Flash-Lite and 3.6 to 3.8 Flash. This applies on Google, Vertex, OpenRouter and NanoGPT, and also to google/gemini-4-argon:online on OpenRouter. Google ignores these values for those models, so replies should not change. A custom connection still sends them, as it already does for Argon.
  • Regenerating your own message with any Gemini model on OpenRouter, NanoGPT or custom now ends the request on the rewrite instruction, as native Google already does. This includes Gemini 3.5 Flash and 3.1 Pro. If the preset has an Assistant Prefill, the prefill now comes before the instruction, also as on native Google.
  • Guided regeneration of your own message on Gemini (text in the input box when you regenerate) now puts the guide before the rewrite instruction, on native Google and on the OpenAI-compatible connections. Before, the guide came last. It ends "do not include a reply from {{user}}", so the last thing the model read told it not to write your message. With Post-Processing on, the guide now joins the earlier user turn, as any mid-chat system instruction does.
  • Regenerating your own message in a merged Conversation group on Gemini no longer adds the group reply format ("prefix messages with Name: message") after the rewrite instruction. It is left out, as it already is for impersonation, because both write your message.

Code:

  • isGeminiStrictRequestModel now drives the sampler rule everywhere it applies: native shouldSendParameter, the OpenAI-compatible isNoTemperatureModel, and the panel. Samplers and penalties now drop together. shouldSendPenaltyParams also keeps its own Gemini check (a custom endpoint keeps its penalties). The check changes no request body, but if isNoTemperatureModel changes, the penalties still stay out.
  • A new shared isGeminiModel in model-lists.ts. normalizeGeminiRequest uses it in place of its inline pattern. The generate route uses it to choose the Gemini user-regeneration ending.
  • The generate route's merged/single branch adds the guide, @mention and turn instructions before the rewrite instruction. The merged Conversation reply format skips a user-message rewrite.
  • New scripts/regressions/gemini-user-regeneration.regression.ts goes through the real POST /api/generate route. It replaces the source-text check that provider-compat used for the route wiring.
  • isGeminiArgonModel now covers only Argon's thinking rule (thinking cannot be turned off) and Vertex streaming. Its comment says so.

Left unchanged, for a separate change:

  • Individual group chats ending on the previous character's reply — checked and not a problem. A reproduction through the real POST /api/generate route (448 runs: 7 connections, Strict on/off, commands on/off, notes, normal and empty Send) found that the next character's request always ends on a user turn: the previous character's reply, then "Respond ONLY as {name}." scopeIndividualGroupMessagesForTarget turns other characters' replies into user messages before post-processing, so the shape described in review only exists in the unscoped array, which is never sent. Only an empty Send in a single-character or Merged chat ends on the AI's turn, which is the intended continue behaviour.
  • For Argon, the newer Flash models and Claude Opus/Sonnet 5.5, the provider then adds "continue the assistant's reply".
  • This already happened on staging for native Argon and Claude 5.5, and older prefill models also continue the previous reply.
  • The fix belongs where the route places "Respond ONLY as {name}". That placement affects every provider, so it is out of scope here.
  • Regenerating your own message in an Individual group chat fails before any request with "Regenerated message is missing character", for every provider. User messages have no character, and the route requires one for an Individual regeneration. This already happens on staging, so it is not changed here.

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

Commands the agent ran on this branch. Each passed locally. Nothing was sent to Google, OpenRouter, NanoGPT or any running instance:

  • pnpm check
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/provider-compat.regression.ts
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/generation-parameter-relevance.regression.ts
  • node ./scripts/run-regressions.mjs --filter past-reasoning-history
  • node ./scripts/run-regressions.mjs --filter regeneration-context
  • node ./scripts/run-regressions.mjs --filter agent-activation
  • node ./scripts/run-regressions.mjs --filter spatial-context
  • node ./scripts/run-regressions.mjs --filter open-issues

Added for the review fixes in f5236d8d1 and ad2e7531a (each passed locally; ad2e7531a only makes the new regression wait for the database to close before it removes its temporary folder):

  • pnpm check
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/gemini-user-regeneration.regression.ts
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/provider-compat.regression.ts
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/generation-parameter-relevance.regression.ts
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/agent-activation (both files)
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/spatial-context
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues
  • node ./scripts/run-regressions.mjs --filter with group-mention-routing, roleplay-regeneration-context, smart-group-decision, prompt.regression, generation-output and conversation

Provider bodies were checked against a stubbed fetch (PROVIDER_LOCAL_URLS_ENABLED=true). With the previous code in place, the new cases fail:

  • Native: "google gemini-3.5-flash-lite chat must not end on a model turn or send samplers".
  • OpenRouter: "google/gemini-4-argon:online chat sends only the samplers it takes".
  • Panel parity: lists every Flash model and :online Argon as a mismatch.

The route regression uses a local stub server on 127.0.0.1 and a temporary data folder. It regenerates a user message in merged Roleplay and Conversation groups on OpenRouter google/gemini-3.8-flash, NanoGPT google/gemini-4-argon, native gemini-4-argon and gemini-3.5-flash, and OpenRouter Llama as a non-Gemini control, with Post-Processing on and off, guided and not. It fails in each of these cases:

  • With eb7ffc8c9's route: "openrouter google/gemini-3.8-flash roleplay Post-Processing on guided ends on the rewrite instruction". The last turn ended with the guide.
  • With the Conversation reply-format skip removed: "… conversation Post-Processing on guided ends on the rewrite instruction". The last turn ended with the reply format.
  • With isGeminiModel(conn.model) removed from the route: "… roleplay Post-Processing on ends on the rewrite instruction". The request ended on "Continue the assistant's reply".

shouldSendPenaltyParams: adding !isGeminiStrictRequestModel(model) without the custom exception fails the provider-compat pin "gemini-4-argon chat sends only the samplers it takes" (custom endpoint, frequency_penalty/presence_penalty dropped). The pushed form (isGenericCustomProvider() || !isGeminiStrictRequestModel(model)) passes every pin. With the Gemini line temporarily removed from isNoTemperatureModel, OpenRouter Argon sent temperature and top_p but still no penalties.

The Gemini 3.5 Flash, 3.1 Pro and non-Gemini byte pins from #7560 are unchanged and pass.

Local CodeRabbit (coderabbit review --agent --committed --base-commit adcfe6d76) ran on eb7ffc8c9 before it was moved onto current staging. It reviewed all 7 files and reported 0 findings.

Local CodeRabbit (coderabbit review --agent --committed --base-commit 58cd2e777) ran once on the review-fix commit before the Conversation change. It reported 2 findings, which were the same issue: a merged Conversation group added its reply format after the rewrite instruction. A route reproduction confirmed it, and f5236d8d1 fixes it with a regression case. CodeRabbit was not re-run after that fix or after ad2e7531a.

Manual verification notes

Manual verification needed:

  • On Google AI Studio with gemini-3.8-flash, open the preset parameters. Confirm Temperature, Top P, Top K and both penalties are hidden. Send a message and confirm a reply arrives.
  • On OpenRouter with google/gemini-3.8-flash, regenerate one of your own messages as a new swipe. Confirm the new swipe rewrites your message and does not continue the AI's reply.
  • Do the same on OpenRouter with google/gemini-3.5-flash and confirm the same result.
  • In a merged Roleplay group on OpenRouter with google/gemini-3.8-flash, type a direction in the input box and use the guided regenerate button on one of your own messages. Confirm the new swipe is your rewritten message, not a character's reply. Repeat on Google AI Studio with gemini-3.5-flash.
  • On OpenRouter with google/gemini-4-argon:online, confirm the Temperature and Top P sliders are hidden.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

docs/connections/providers-reference.md does not describe Gemini sampler or regeneration handling. This PR changes no docs and adds nothing to #7543.

Sources

Read 2026-10-13:

Summary by CodeRabbit

  • Bug Fixes
    • Gemini requests now use consistent generation settings across Google, OpenRouter, NanoGPT, and other supported connections. Unsupported sampling and penalty settings are no longer sent for strict-request Gemini models, while custom connections retain their settings.
    • Gemini response generation now ends with the rewritten user message rather than an assistant continuation, including when using third-party connections.

🔄 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/7569 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/gemini-flash-samplers-user-rewrite` --- ### 📝 Commits (3) - [`eb7ffc8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eb7ffc8c9b0a4c94b78cb68938c83726c0d293f5) fix(gemini): drop ignored samplers for the newer Flash models and end user rewrites on the instruction - [`f5236d8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f5236d8d18460476973596a2d2259006a203c570) fix(gemini): keep the user rewrite instruction last and prove it through the route - [`ad2e753`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ad2e7531acecc21905c72444bcd027e45720f983) test(gemini): wait for the database to close before removing the scratch folder ### 📊 Changes **8 files changed** (+270 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+16 -2) 📝 `packages/server/src/services/llm/providers/google.provider.ts` (+8 -4) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+5 -5) 📝 `packages/shared/src/constants/generation-parameter-relevance.ts` (+3 -6) 📝 `packages/shared/src/constants/model-lists.ts` (+11 -4) ➕ `scripts/regressions/gemini-user-regeneration.regression.ts` (+171 -0) 📝 `scripts/regressions/generation-parameter-relevance.regression.ts` (+1 -0) 📝 `scripts/regressions/provider-compat.regression.ts` (+55 -18) </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`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Refs #7558. This is a follow-up to #7560, which closed that issue and was merged before these review fixes were ready. ## Why this change - **Samplers that do nothing.** Google documents that Gemini 3.5 Flash-Lite and 3.6 to 3.8 Flash ignore temperature, top-p and top-k, the same way it documents this for Argon. #7560 kept that rule for Argon only. For these Flash models, the panel still showed sliders that change nothing, and every request still sent the values. - **Argon's `:online` variant.** On OpenRouter, `google/gemini-4-argon:online` got the other rules from #7560, but it still showed and sent those sliders. - **User-message regeneration on OpenRouter, NanoGPT and custom Gemini.** When you regenerate one of your own messages as a new swipe, the request should end on an instruction to rewrite your message. Only native Google and Vertex added that instruction. On the other connections the request ended on the AI's last reply: - Since #7560, the newer Gemini models get a "continue the assistant's reply" turn at that point. - Older Gemini models on OpenRouter treat a final AI turn as a prefill. - In both cases the model continued the AI's reply, and Marinara saved that text as your swipe. ## What changed Behaviour that changes for things that worked before: - **Temperature, Top P and Top K are hidden and no longer sent** for Gemini 3.5 Flash-Lite and 3.6 to 3.8 Flash. This applies on Google, Vertex, OpenRouter and NanoGPT, and also to `google/gemini-4-argon:online` on OpenRouter. Google ignores these values for those models, so replies should not change. A custom connection still sends them, as it already does for Argon. - **Regenerating your own message with any Gemini model** on OpenRouter, NanoGPT or custom now ends the request on the rewrite instruction, as native Google already does. This includes Gemini 3.5 Flash and 3.1 Pro. If the preset has an Assistant Prefill, the prefill now comes before the instruction, also as on native Google. - **Guided regeneration of your own message on Gemini** (text in the input box when you regenerate) now puts the guide before the rewrite instruction, on native Google and on the OpenAI-compatible connections. Before, the guide came last. It ends "do not include a reply from {{user}}", so the last thing the model read told it not to write your message. With Post-Processing on, the guide now joins the earlier user turn, as any mid-chat system instruction does. - **Regenerating your own message in a merged Conversation group on Gemini** no longer adds the group reply format ("prefix messages with `Name: message`") after the rewrite instruction. It is left out, as it already is for impersonation, because both write your message. Code: - `isGeminiStrictRequestModel` now drives the sampler rule everywhere it applies: native `shouldSendParameter`, the OpenAI-compatible `isNoTemperatureModel`, and the panel. Samplers and penalties now drop together. `shouldSendPenaltyParams` also keeps its own Gemini check (a custom endpoint keeps its penalties). The check changes no request body, but if `isNoTemperatureModel` changes, the penalties still stay out. - A new shared `isGeminiModel` in `model-lists.ts`. `normalizeGeminiRequest` uses it in place of its inline pattern. The generate route uses it to choose the Gemini user-regeneration ending. - The generate route's merged/single branch adds the guide, @mention and turn instructions before the rewrite instruction. The merged Conversation reply format skips a user-message rewrite. - New `scripts/regressions/gemini-user-regeneration.regression.ts` goes through the real `POST /api/generate` route. It replaces the source-text check that `provider-compat` used for the route wiring. - `isGeminiArgonModel` now covers only Argon's thinking rule (thinking cannot be turned off) and Vertex streaming. Its comment says so. Left unchanged, for a separate change: - ~~Individual group chats ending on the previous character's reply~~ — **checked and not a problem.** A reproduction through the real `POST /api/generate` route (448 runs: 7 connections, Strict on/off, commands on/off, notes, normal and empty Send) found that the next character's request always ends on a user turn: the previous character's reply, then "Respond ONLY as {name}." `scopeIndividualGroupMessagesForTarget` turns other characters' replies into user messages before post-processing, so the shape described in review only exists in the unscoped array, which is never sent. Only an empty Send in a single-character or Merged chat ends on the AI's turn, which is the intended continue behaviour. - For Argon, the newer Flash models and Claude Opus/Sonnet 5.5, the provider then adds "continue the assistant's reply". - This already happened on staging for native Argon and Claude 5.5, and older prefill models also continue the previous reply. - The fix belongs where the route places "Respond ONLY as {name}". That placement affects every provider, so it is out of scope here. - Regenerating your own message in an **Individual** group chat fails before any request with "Regenerated message is missing character", for every provider. User messages have no character, and the route requires one for an Individual regeneration. This already happens on staging, so it is not changed here. ## 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` Commands the agent ran on this branch. Each passed locally. Nothing was sent to Google, OpenRouter, NanoGPT or any running instance: - `pnpm check` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/provider-compat.regression.ts` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/generation-parameter-relevance.regression.ts` - `node ./scripts/run-regressions.mjs --filter past-reasoning-history` - `node ./scripts/run-regressions.mjs --filter regeneration-context` - `node ./scripts/run-regressions.mjs --filter agent-activation` - `node ./scripts/run-regressions.mjs --filter spatial-context` - `node ./scripts/run-regressions.mjs --filter open-issues` Added for the review fixes in f5236d8d1 and ad2e7531a (each passed locally; ad2e7531a only makes the new regression wait for the database to close before it removes its temporary folder): - `pnpm check` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/gemini-user-regeneration.regression.ts` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/provider-compat.regression.ts` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/generation-parameter-relevance.regression.ts` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/agent-activation` (both files) - `node ./scripts/run-regressions.mjs --filter scripts/regressions/spatial-context` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues` - `node ./scripts/run-regressions.mjs --filter` with `group-mention-routing`, `roleplay-regeneration-context`, `smart-group-decision`, `prompt.regression`, `generation-output` and `conversation` Provider bodies were checked against a stubbed `fetch` (`PROVIDER_LOCAL_URLS_ENABLED=true`). With the previous code in place, the new cases fail: - Native: "google gemini-3.5-flash-lite chat must not end on a model turn or send samplers". - OpenRouter: "google/gemini-4-argon:online chat sends only the samplers it takes". - Panel parity: lists every Flash model and `:online` Argon as a mismatch. The route regression uses a local stub server on 127.0.0.1 and a temporary data folder. It regenerates a user message in merged Roleplay and Conversation groups on OpenRouter `google/gemini-3.8-flash`, NanoGPT `google/gemini-4-argon`, native `gemini-4-argon` and `gemini-3.5-flash`, and OpenRouter Llama as a non-Gemini control, with Post-Processing on and off, guided and not. It fails in each of these cases: - With eb7ffc8c9's route: "openrouter google/gemini-3.8-flash roleplay Post-Processing on guided ends on the rewrite instruction". The last turn ended with the guide. - With the Conversation reply-format skip removed: "… conversation Post-Processing on guided ends on the rewrite instruction". The last turn ended with the reply format. - With `isGeminiModel(conn.model)` removed from the route: "… roleplay Post-Processing on ends on the rewrite instruction". The request ended on "Continue the assistant's reply". `shouldSendPenaltyParams`: adding `!isGeminiStrictRequestModel(model)` without the custom exception fails the provider-compat pin "gemini-4-argon chat sends only the samplers it takes" (custom endpoint, `frequency_penalty`/`presence_penalty` dropped). The pushed form (`isGenericCustomProvider() || !isGeminiStrictRequestModel(model)`) passes every pin. With the Gemini line temporarily removed from `isNoTemperatureModel`, OpenRouter Argon sent `temperature` and `top_p` but still no penalties. The Gemini 3.5 Flash, 3.1 Pro and non-Gemini byte pins from #7560 are unchanged and pass. Local CodeRabbit (`coderabbit review --agent --committed --base-commit adcfe6d76`) ran on eb7ffc8c9 before it was moved onto current staging. It reviewed all 7 files and reported 0 findings. Local CodeRabbit (`coderabbit review --agent --committed --base-commit 58cd2e777`) ran once on the review-fix commit before the Conversation change. It reported 2 findings, which were the same issue: a merged Conversation group added its reply format after the rewrite instruction. A route reproduction confirmed it, and f5236d8d1 fixes it with a regression case. CodeRabbit was not re-run after that fix or after ad2e7531a. ### Manual verification notes Manual verification needed: - On Google AI Studio with `gemini-3.8-flash`, open the preset parameters. Confirm Temperature, Top P, Top K and both penalties are hidden. Send a message and confirm a reply arrives. - On OpenRouter with `google/gemini-3.8-flash`, regenerate one of your own messages as a new swipe. Confirm the new swipe rewrites your message and does not continue the AI's reply. - Do the same on OpenRouter with `google/gemini-3.5-flash` and confirm the same result. - In a merged Roleplay group on OpenRouter with `google/gemini-3.8-flash`, type a direction in the input box and use the guided regenerate button on one of your own messages. Confirm the new swipe is your rewritten message, not a character's reply. Repeat on Google AI Studio with `gemini-3.5-flash`. - On OpenRouter with `google/gemini-4-argon:online`, confirm the Temperature and Top P sliders are hidden. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) `docs/connections/providers-reference.md` does not describe Gemini sampler or regeneration handling. This PR changes no docs and adds nothing to #7543. ## Sources Read 2026-10-13: - Argon ("The backend ignores custom values", "Remove `temperature`, `top_p`, and `top_k`, which are ignored."): https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/guides/gemini-4-argon - Gemini 3.6 Flash and 3.5 Flash-Lite ("`temperature`, `top_p`, and `top_k` are deprecated and ignored." "Remove these parameters from all requests."): https://ai.google.dev/gemini-api/docs/whats-new-gemini-3.6 - Gemini 3.6 Flash ("Setting custom values will be ignored in the API surface."): https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/guides/gemini-3-6-flash - Gemini 3.7 Flash ("These parameters are ignored by the backend."): https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/guides/gemini-3-7-flash - Gemini 3.8 Flash ("These parameters are ignored by the backend."): https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/guides/gemini-3-8-flash - Gemini 3.5 Flash-Lite ("If you set a custom value for these parameters, that value will be ignored."): https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/gemini/3-5-flash-lite <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Gemini requests now use consistent generation settings across Google, OpenRouter, NanoGPT, and other supported connections. Unsupported sampling and penalty settings are no longer sent for strict-request Gemini models, while custom connections retain their settings. * Gemini response generation now ends with the rewritten user message rather than an assistant continuation, including when using third-party connections. <!-- 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-24 04:07:38 +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#7803
No description provided.