This commit is contained in:
Cyberes 2023-10-03 01:25:43 -06:00
parent ca1baa4870
commit 63c12ea830
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class OpenAIRequestHandler(RequestHandler):
if not request_valid: if not request_valid:
return invalid_response 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) print('moderating', self.token)
try: try:
# Gather the last message from the user and all preceeding system messages # Gather the last message from the user and all preceeding system messages