mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix moderation
This commit is contained in:
parent
0ba9a26ecd
commit
c8ee924f26
1 changed files with 1 additions and 0 deletions
|
@ -1280,6 +1280,7 @@ def moderation(*args, **kwargs):
|
||||||
)
|
)
|
||||||
openai.api_key = api_key
|
openai.api_key = api_key
|
||||||
openai.api_type = "open_ai"
|
openai.api_type = "open_ai"
|
||||||
|
openai.api_version = None
|
||||||
openai.api_base = "https://api.openai.com/v1"
|
openai.api_base = "https://api.openai.com/v1"
|
||||||
response = openai.Moderation.create(*args, **kwargs)
|
response = openai.Moderation.create(*args, **kwargs)
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue