This Filter function modifies the request payload for Google Gemini models to disable content safety filters. It adds the 'safety_settings' parameter to the request body with all harm categories set to 'BLOCK_NONE'. This is intended for use cases where Gemini's default filtering is overly restrictive. Use responsibly. Note: This function identifies Gemini models by checking if the model ID starts with 'google/gemini'. This might need adjustment depending on how your specific backend (e.g., OpenRouter, Ollama with LiteLLM Proxy) names the Gemini models.
""" title: Gemini Safety Settings off (for OpenAI API, e.g OpenRouter) author: Kkoolldd author_url: Nope version: 0.1.0 description: This Filter function modifies the request payload for Google Gemini models to disable content safety filters. It adds the 'safety_settings' parameter to the request body with all harm categories set to 'BLOCK_NONE'. This is intended for use cases where Gemini's default filtering is overly restrictive. Use responsibly.
This Filter function modifies the request payload for Google Gemini models to disable content safety filters. It adds the 'safety_settings' parameter to the request body with all harm categories set to 'BLOCK_NONE'. This is intended for use cases where Gemini's default filtering is overly restrictive. Use responsibly. Note: This function identifies Gemini models by checking if the model ID starts with 'google/gemini'. This might need adjustment depending on how your specific backend (e.g., OpenRouter, Ollama with LiteLLM Proxy) names the Gemini models.
We use optional analytics to improve our websites, and advertising cookies on this site. Privacy Policy.