How to set safety_settings via OpenAI API?

In OpenAI compatibility  |  Gemini API  |  Google AI for Developers, it states that it’s possible to use the extra_body parameter to set safety_settings, but any schema I’ve tried has been rejected as invalid.

Hi @Ezio_Auditore , Welcome to the forum.

Seems like proper documentation is required for setting safety parameters. Thanks for flagging this. I will get back to you on this.