mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7541] [MERGED] fix(google): keep Flash as the default and make Argon's settings honest #7784
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#7784
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/7541
Author: @SpicyMarinara
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/gemini-4-argon-follow-up📝 Commits (1)
00430d9fix(google): keep Flash as the default and make Argon's settings honest📊 Changes
11 files changed (+123 additions, -47 deletions)
View changed files
📝
docs/connections/providers-reference.md(+1 -1)📝
packages/server/src/routes/generate/dry-run-route.ts(+1 -1)📝
packages/server/src/routes/generate/raw-route.ts(+1 -1)📝
packages/server/src/services/generation/generation-parameters.ts(+1 -1)📝
packages/server/src/services/generation/provider-generation-runtime.ts(+1 -1)📝
packages/server/src/services/llm/providers/google.provider.ts(+10 -4)📝
packages/server/src/services/llm/providers/openai.provider.ts(+3 -0)📝
packages/shared/src/constants/generation-parameter-relevance.ts(+9 -13)📝
packages/shared/src/constants/model-lists.ts(+12 -4)📝
scripts/regressions/generation-parameter-relevance.regression.ts(+70 -14)📝
scripts/regressions/provider-compat.regression.ts(+14 -7)📄 Description
Linked issue
Refs #7534. That issue was closed when #7536 merged, and this PR follows up on #7536.
Translation follow-up: #7535 (updated with the reworded paragraph, and nothing has been translated yet).
Why this change
A review of the merged Gemini 4 Argon change (#7536) found four problems:
gemini-4-argonfirst, so it became the default for every new Google Gemini and Google Vertex AI connection. Argon fails with free AI Studio keys. On Vertex, the default Base URL usesus-central1, where Argon does not run. The PR body did not mention this change.none. The tooltip was also English-only.google/gemini-4-argonin the same Google list, so after #7536 Argon was a known model there and they sent temperature, top-p and both penalties. Google rejects penalties for Argon with HTTP 400. Before #7536 only max tokens was sent.What changed
Changes to how things behave now (all limited to Argon, except the default model):
gemini-3.8-flashagain, as they did before #7536. Argon is now second in the list.medium(Google's own default) with thought summaries. Thinking now shows in those chats, agents get the same thinking room as Medium, and the preview saysmedium. The buttons are Low, Medium and High.Details:
packages/shared/src/constants/model-lists.ts:gemini-3.8-flashis first again.resolveProviderReasoningEffortmaps Off,noneor no level tomediumfor Argon ongoogleandgoogle_vertex."none"after resolving the level: the generation runtime, dry run, raw route and stored chat options. They now let the mapped level win. For every other model, Off still resolves to nothing, so these places behave as before. Fallback connections do not resolve the level at all (see Not changed).reasoningEffortChoicesleaves out Off when Off would send a level. This replaces #7536's "Default (Provider default: medium)" relabel and removes its hard-coded English tooltip.google.provider.ts:supportsGoogleThinkingStreamingalso accepts Google's own*.googleapis.comhosts for Argon. Markedponytail:. Other models on Vertex still buffer thinking turns, and the model check can be dropped once Vertex thought streaming is verified for them.openai.provider.ts:isNoTemperatureModelincludes Argon, next to the existing Claude rule. Parameter relevance hides Argon's sampling controls on every provider exceptcustom.docs/connections/providers-reference.md: the timeout advice now namesAGENT_CALL_TIMEOUT_MSfor agent calls as well asCHAT_GENERATION_TIMEOUT_MS, and says the wait applies to both Google connections.Not changed
provider-compatassertion pins it, and the reviewer could not show that Argon rejects it without a live request. Changing it would affect every Gemini tool loop. The Game mode check under Manual verification below covers it.none, so Google's default medium applies without extra thinking room. Gemini 3 Pro behaves the same way today. Fallback connections pass their saved Off straight through, as for every provider, so Argon there still thinks at medium but without thought summaries.Sources:
Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands the agent ran locally. Nothing was sent to Google or any other provider; request bodies were captured by a stubbed
fetchor a local stub server.pnpm check: passed (exit 0).node ./scripts/run-regressions.mjs --filter <name>: passed forgeneration-parameter-relevance,provider-compat,agent-activation(2/2),spatial-context,open-issues,codex-reasoning-effort,game-generation-parameters,agent-connection-parameters,nanogpt-glm-reasoning-off,connection-model-list,deepseek-reasoning-output,mistral-reasoning-output,past-reasoning-history,responses-rejected-reasoningandresponses-tool-reasoning.coderabbit review --agent --committed, base088406bf8): 0 findings.New regression proof:
generation-parameter-relevance: Argon's buttons are low, medium and high only. Off,noneand no level resolve tomedium. An agent on an Argon connection saved as Off gets the same reasoning and max tokens as one saved as Medium. Gemini 3 keeps its Off.google/gemini-4-argonis probed on OpenRouter and NanoGPT, where the panel must match the request and must hide all five sampling controls. New Google and Vertex connections must not start on Argon.provider-compat: Argon thinking turns stream on Vertex, in both chat and the tools round. Gemini 3.5 Flash thinking turns keep their endpoint on both providers, and their bodies stay pinned byte for byte.none.provider-compatfails on the Vertex:generateContentURL.Manual verification notes
Manual verification needed. The agent has not done these; they need real keys.
gemini-3.8-flash.https://aiplatform.googleapis.com/v1/projects/<project>/locations/global, selectgemini-4-argonwith streaming on and reasoning effort High. Send a Roleplay message, and confirm that the thinking and the reply stream in and are not shown all at once at the end.gemini-4-argonand open the reasoning effort row. Confirm it shows Low, Medium and High with no Off or Default button. On a connection that was saved as Off before this change, send a message. Confirm the thinking appears and the parameter preview showsmedium.google/gemini-4-argon. Confirm the temperature, top-p, top-k and penalty controls are hidden and a message gets a reply.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/connections/providers-reference.mdchanged one sentence. The open translation issue #7535 now carries the new text, so the translators only do this once.Summary by CodeRabbit
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.