You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The logic in the content filter is such that the openai content filter is always called even if use_content_filter is false (and then is disregarded). I think a better logic would be:
if not use_content_filter:
response_safe = True
else:
response_safe = OpenAIGPT3LanguageModel.content_safe(completion_text)
if not response_safe:
print(f"Completion flagged unsafe: {completion_text}")
logging.info(f"Completion flagged unsafe: {completion_text}")
The text was updated successfully, but these errors were encountered:
The logic in the content filter is such that the openai content filter is always called even if
use_content_filter
is false (and then is disregarded). I think a better logic would be:The text was updated successfully, but these errors were encountered: