forked from phoenix/litellm-mirror
fix moderation
This commit is contained in:
parent
0ca08b1545
commit
f9476b7a52
1 changed files with 1 additions and 0 deletions
|
@ -1280,6 +1280,7 @@ def moderation(*args, **kwargs):
|
|||
)
|
||||
openai.api_key = api_key
|
||||
openai.api_type = "open_ai"
|
||||
openai.api_version = None
|
||||
openai.api_base = "https://api.openai.com/v1"
|
||||
response = openai.Moderation.create(*args, **kwargs)
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue