Merge cluster to master #3
|
@ -38,7 +38,7 @@ class OpenAIRequestHandler(RequestHandler):
|
|||
if not request_valid:
|
||||
return invalid_response
|
||||
|
||||
if opts.openai_api_key and is_api_key_moderated(self.token):
|
||||
if opts.openai_moderation_enabled and opts.openai_api_key and is_api_key_moderated(self.token):
|
||||
print('moderating', self.token)
|
||||
try:
|
||||
# Gather the last message from the user and all preceeding system messages
|
||||
|
|
Reference in New Issue