mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7542] Always turn Gemini safety filters off #4196
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#4196
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?
Originally created by @SpicyMarinara on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7542
Originally assigned to: @SpicyMarinara on GitHub.
What happens today
Marinara sends no safety settings to Gemini on any route, so every request depends on Google's default filters. Google documents the default as Off only for Gemini 2.5 and 3 models (safety settings). Newer models such as Gemini 4 Argon have no documented default, so Google may block replies on them that Gemini 3 would allow.
Decision
Mari decided on 2026-10-13 that Gemini safety filters must always be off. There is no setting for this. Google's core protections, such as child safety, cannot be turned off, and when Google still blocks a reply Marinara keeps showing Google's reason.
Routes
Embedding and token-count calls are out of scope because safety settings do not apply to them.
@SpicyMarinara commented on GitHub (Oct 13, 2026):
Fix in #7544. AI Studio and Vertex now send all four adjustable safety categories with
OFFon every chat, streaming, tool-calling and connection-test request. Follow-up #7552: a safety list in Custom Parameters now overrides only the categories it names, and every other category staysOFF. In #7544 a partial list replaced all four.Known gaps, each with no documented way to send Gemini safety settings:
provider.optionskeyed by provider slug, includinggoogle-ai-studioandgoogle-vertex, each open-ended. Only options for the matched provider are forwarded, and unrecognised keys are dropped (https://openrouter.ai/docs/api/api-reference/chat/send-chat-completion-request). No Gemini safety key is documented under it or elsewhere (https://openrouter.ai/docs/api/reference/parameters), so adding one would be a guess. OpenRouter bodies are unchanged. (Corrected: this comment first saidprovider.optionswas documented only for video.)safety_settingsis documented only for the Images endpoint, not for chat completions (https://ai.google.dev/gemini-api/docs/openai).