forked from phoenix/litellm-mirror
Merge pull request #1199 from neubig/add_safety_settings_default
Add a default for safety settings in vertex AI
This commit is contained in:
commit
5edc987209
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue