Closed tikendraw closed 10 months ago
I think this already works and has been working for quite some time. If you add the safety_settings kwarg to the completion() function when using a palm model, it will be forwarded to Palm Config by this line: https://github.com/BerriAI/litellm/blob/d90e04b531692dcb8672909f526c234d0f828595/litellm/llms/palm.py#L119
closing as this is resolved then?
Although i do believe we could have better docs on this.
@tikendraw @motin we'd welcome a doc contribution here
if you can share a working code snippet i can add it to the docs - https://docs.litellm.ai/docs/providers/palm
The Feature
There is a safety setting in google.generativeai api. Add Add saftey settings as optional parameters to the Palm config class.
Motivation, pitch
To add safety checks.