Function
filter
v0.1.0
Disable gemini content safety setting for OpenAI API and OpenRouter
Function ID
disable_gemini_content_safety_setting_for_openai_api_and_openrouter
Creator
@kkoolldd
Downloads
114+
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.
README
No README available