[GH-ISSUE #7542] Always turn Gemini safety filters off #4196

Closed
opened 2026-10-21 06:12:17 +07:00 by bsakaguchi · 1 comment
Owner

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

  • Google Gemini (AI Studio) chat: streaming, non-streaming and the tool-calling round.
  • Google Vertex AI chat: the same three request shapes.
  • The connection test, which uses the same provider.
  • Gemini models through OpenRouter, Google's OpenAI-compatible endpoint, Gemini image models and Gemini Omni video: only where the provider documents a field for it. The PR records which of these have no documented way to send safety settings.

Embedding and token-count calls are out of scope because safety settings do not apply to them.

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](https://ai.google.dev/gemini-api/docs/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 - Google Gemini (AI Studio) chat: streaming, non-streaming and the tool-calling round. - Google Vertex AI chat: the same three request shapes. - The connection test, which uses the same provider. - Gemini models through OpenRouter, Google's OpenAI-compatible endpoint, Gemini image models and Gemini Omni video: only where the provider documents a field for it. The PR records which of these have no documented way to send safety settings. Embedding and token-count calls are out of scope because safety settings do not apply to them.
bsakaguchi 2026-10-21 06:12:17 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 13, 2026):

Fix in #7544. AI Studio and Vertex now send all four adjustable safety categories with OFF on 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 stays OFF. In #7544 a partial list replaced all four.

Known gaps, each with no documented way to send Gemini safety settings:

<!-- gh-comment-id:6151183830 --> @SpicyMarinara commented on GitHub (Oct 13, 2026): Fix in #7544. AI Studio and Vertex now send all four adjustable safety categories with `OFF` on 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 stays `OFF`. In #7544 a partial list replaced all four. Known gaps, each with no documented way to send Gemini safety settings: - **OpenRouter:** the chat API reference does list `provider.options` keyed by provider slug, including `google-ai-studio` and `google-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 said `provider.options` was documented only for video.) - **NanoGPT and Custom (OpenAI-compatible) connections serving Gemini:** both use the OpenAI-compatible provider, and their bodies are unchanged. NanoGPT's chat reference documents no safety or Gemini passthrough field (https://docs.nano-gpt.com/api-reference/endpoint/chat-completion). Users can add a field a custom proxy documents in Custom Parameters. - **Google's OpenAI-compatible endpoint and Gemini image models through OpenAI-compatible proxies:** `safety_settings` is documented only for the Images endpoint, not for chat completions (https://ai.google.dev/gemini-api/docs/openai). - **Gemini Omni video (Interactions API):** Google says custom safety settings are not supported there yet (https://ai.google.dev/gemini-api/docs/interactions-overview).
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#4196
No description provided.