-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Add perspectiveapi for moderation #406
base: main
Are you sure you want to change the base?
Commits on Nov 14, 2023
-
refactor(language detection): rename FORCE_ENGLISH to FORCE_LANGUAGE,…
… add new languages with perspective. Move language check before moderation. This change is NON BREAKING, the FORCE_ENGLISH environement variable still works.
Configuration menu - View commit details
-
Copy full SHA for aeabd88 - Browse repository at this point
Copy the full SHA aeabd88View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5ef501 - Browse repository at this point
Copy the full SHA b5ef501View commit details -
Configuration menu - View commit details
-
Copy full SHA for b47f38a - Browse repository at this point
Copy the full SHA b47f38aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 49478db - Browse repository at this point
Copy the full SHA 49478dbView commit details -
feat(moderation): add get_moderation_service, get_language_detect_ser…
…vice, get_force_language, get_perspective_api_key, get_max_perspective_requests_per_second functions This is NON BREAKING, the FORCE_ENGLISH env variable still works.
Configuration menu - View commit details
-
Copy full SHA for 4e62487 - Browse repository at this point
Copy the full SHA 4e62487View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0956c3 - Browse repository at this point
Copy the full SHA b0956c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7215cf1 - Browse repository at this point
Copy the full SHA 7215cf1View commit details -
fix(moderations_service.py): change send_moderations_request method s…
…ignature to include an optional override_model parameter fix(moderations_service.py): update send_moderations_request method to check for override_model parameter and use it to determine which model to use fix(moderations_service.py): update set_thumbnail method in Moderation class to conditionally set the thumbnail URL based on the model type fix(moderations_service.py): update set_thumbnail method in Moderation class to conditionally set the thumbnail URL based on the language_detect_type
Configuration menu - View commit details
-
Copy full SHA for f2ae881 - Browse repository at this point
Copy the full SHA f2ae881View commit details -
Merge branch 'google-perspective' of https://github.com/Paillat-dev/G…
…PTDiscord into google-perspective
Configuration menu - View commit details
-
Copy full SHA for dbafafc - Browse repository at this point
Copy the full SHA dbafafcView commit details -
fix(moderations_service.py): add spoiler tags to moderated message co…
…ntent in the notification embed to hide sensitive information
Configuration menu - View commit details
-
Copy full SHA for 2a18e80 - Browse repository at this point
Copy the full SHA 2a18e80View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1ab81e - Browse repository at this point
Copy the full SHA e1ab81eView commit details -
fix(moderations_service.py): fix import formatting and add missing li…
…ne breaks for better readability feat(moderations_service.py): add support for language detection using OpenAI and Perspective models feat(moderations_service.py): add moderation messages for different languages to be sent to users when their messages are moderated fix(moderations_service.py): fix method signature and add missing line breaks for better readability
Configuration menu - View commit details
-
Copy full SHA for 722e381 - Browse repository at this point
Copy the full SHA 722e381View commit details
Commits on Nov 17, 2023
-
fix(perspective_model.py): remove "languages" from ANALYZE_REQUEST an…
…d ANALYZE_REQUEST_NOT_EN to allow language detection fix(perspective_model.py): add exception handling for languageNotSupportedByAttribute when using ANALYZE_REQUEST_NOT_EN fix(moderations_service.py): add docstrings to send_language_detect_request and send_moderations_request methods fix(moderations_service.py): add exception handling for languageNotSupportedByAttribute in send_moderations_request method fix(moderations_service.py): add exception handling for languageNotSupportedByAttribute in moderation loop to ignore messages with unsupported languages
Configuration menu - View commit details
-
Copy full SHA for 5178320 - Browse repository at this point
Copy the full SHA 5178320View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1209916 - Browse repository at this point
Copy the full SHA 1209916View commit details -
refactor(moderations_service.py): add docstring to ModerationModel cl…
…ass to improve code readability and documentation
Configuration menu - View commit details
-
Copy full SHA for d517ba4 - Browse repository at this point
Copy the full SHA d517ba4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bfe52a - Browse repository at this point
Copy the full SHA 5bfe52aView commit details -
chore(AI-MODERATION.md): reorganize and improve readability of the AI…
… Moderation guide The AI Moderation guide has been reorganized and improved for better readability and understanding. The changes include: - Renaming the section titles to be more descriptive. - Adding a section for choosing between the OpenAI and PerspectiveAPI moderation services. - Providing separate commands and thresholds for each moderation service. - Adding a section for language detection and the force language feature. - Including additional configuration options and instructions. - Removing the note about the server not being for support or discussions about GPT3Discord. These changes aim to make it easier for users to understand and configure the AI Moderation feature.
Configuration menu - View commit details
-
Copy full SHA for 067863c - Browse repository at this point
Copy the full SHA 067863cView commit details
Commits on Dec 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4e79f18 - Browse repository at this point
Copy the full SHA 4e79f18View commit details
Commits on Mar 13, 2024
-
Merge branch 'main' into google-perspective
Signed-off-by: Paillat <me@paillat.dev>
Configuration menu - View commit details
-
Copy full SHA for 41f846c - Browse repository at this point
Copy the full SHA 41f846cView commit details