Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use OpenAI content moderation for all prompts #322

Merged
merged 8 commits into from
Sep 24, 2023
Merged

Conversation

ProducerMatt
Copy link
Member

Also allows non-Rob servers to get error reports in their channel

@ProducerMatt ProducerMatt added bug Something isn't working enhancement New feature or request labels Sep 20, 2023
@ProducerMatt ProducerMatt self-assigned this Sep 20, 2023
if disable_prompt_moderation:
return False

if CURL_REQUEST:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does the condition here use a separate variable and not if use_helicone:, please?

@@ -126,30 +126,21 @@ def getenv_unique_set(var_name: str, default: T = frozenset()) -> Union[frozense
else:
enabled_modules = enabled_modules_var

# user-configured from dotenv
# SEE README: ENVIRONMENT VARIABLES
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ProducerMatt ProducerMatt merged commit 646f43b into master Sep 24, 2023
2 checks passed
@ProducerMatt ProducerMatt deleted the mod-the-world branch October 7, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants