Skip to content

refactor: ai-content-moderation to ai-aws-content-moderation#12010

Merged
shreemaan-abhishek merged 7 commits into
apache:masterfrom
shreemaan-abhishek:refactor-content-moderation
Mar 6, 2025
Merged

refactor: ai-content-moderation to ai-aws-content-moderation#12010
shreemaan-abhishek merged 7 commits into
apache:masterfrom
shreemaan-abhishek:refactor-content-moderation

Conversation

@shreemaan-abhishek

Copy link
Copy Markdown
Contributor

Description

The current plug-in configuration abstraction turned out to be a bad design choice as the moderation mechanism is hard-coded to plugin logic, if we use other AI content moderation services, there will be huge differences in how the content moderation is done.

So, this PR refactors ai-content-moderation plugin by making it specific for ai-aws-content-moderation.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. plugin labels Feb 28, 2025
@membphis

membphis commented Mar 3, 2025

Copy link
Copy Markdown
Member

CI failed, pls fix those first

@shreemaan-abhishek

Copy link
Copy Markdown
Contributor Author

CI failed, pls fix those first

seems like flaky error, I have re-run the CI.

@membphis membphis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

need to update the doc too:

image

@membphis

membphis commented Mar 5, 2025

Copy link
Copy Markdown
Member

ci failed

@shreemaan-abhishek
shreemaan-abhishek merged commit 25e2e73 into apache:master Mar 6, 2025
@shreemaan-abhishek
shreemaan-abhishek deleted the refactor-content-moderation branch March 6, 2025 05:48
| comprehend.secret_access_key | Yes | String | AWS secret access key |
| comprehend.region | Yes | String | AWS region |
| comprehend.endpoint | No | String | AWS Comprehend service endpoint. Must match the pattern `^https?://` |
| comprehend.ssl_verify | No | String | Enables SSL certificate verification. |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing default value column. e.g. ssl_verify default is true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants