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

Moderation Omni - New Categories (Illicit*) support. #495

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

iBotPeaches
Copy link
Contributor

What:

  • Bug Fix
  • New Feature

Description:

The Omni Moderation models were released, thus deprecating the older models (now referred to as Legacy). This introduced the illicit and illicit/violent moderation category, but ONLY for Omni. This presented an issue as this library iterated all known types and assumed all models will have it.

Now we only set a Category if we have it and thus support partial support of Omni Moderation.

Ref: https://platform.openai.com/docs/guides/moderation

This does NOT add support for the new category_applied_input_types field.

@gehrisandro gehrisandro merged commit 2b4522b into openai-php:main Nov 12, 2024
10 checks passed
@gehrisandro
Copy link
Collaborator

Thanks @iBotPeaches for the PR 🥳

@iBotPeaches iBotPeaches deleted the omni-basic-support branch November 12, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants