Merge cluster to master #3

Merged
cyberes merged 163 commits from cluster into master 2023-10-27 19:19:22 -06:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 63c12ea830 - Show all commits

View File

@ -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