Is there a way to change the safety_settings (content filter) calling Gemini via OpenAI API?

I'm referring to this: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-filters

There's this post from Litellm where a user was able to pass extra_body parameter with the safety filters: https://github.com/BerriAI/litellm/issues/2866

I tried that but it didn't work. Example code below:

response = client.chat.completions.create(
    model="gemini-experimental",
    messages=[
        {
            "role": "user",
            "content": "Generate a test response",
        }
    ],
    extra_body={
        "safety_settings": [
            {
                "category": "HARM_CATEGORY_HARASSMENT",
                "threshold": "BLOCK_NONE",
            },
            {
                "category": "HARM_CATEGORY_HATE_SPEECH",
                "threshold": "BLOCK_NONE",
            },
            {
                "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
                "threshold": "BLOCK_NONE",
            },
            {
                "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
                "threshold": "BLOCK_NONE",
            },
        ],
    }
)

I wanted to know if it's possible and if so, how can I do it