mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-09 02:24:40 +00:00
Add a default for safety settings in vertex AI
This commit is contained in:
@@ -195,6 +195,7 @@ def completion(
|
||||
optional_params[k] = v
|
||||
|
||||
## Process safety settings into format expected by vertex AI
|
||||
safety_settings = None
|
||||
if "safety_settings" in optional_params:
|
||||
safety_settings = optional_params.pop("safety_settings")
|
||||
if not isinstance(safety_settings, list):
|
||||
|
||||
Reference in New Issue
Block a user