fix moderation
This commit is contained in:
parent
0ca08b1545
commit
f9476b7a52
@ -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…
Reference in New Issue
Block a user