Skip to content

Conversation

iBotPeaches
Copy link
Collaborator

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