-
-
Notifications
You must be signed in to change notification settings - Fork 607
feat(OpenAI): Add category applied input types to moderation response #572
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
feat(OpenAI): Add category applied input types to moderation response #572
Conversation
Nowhere in the documentation https://platform.openai.com/docs/api-reference/moderations/object they mentioned that |
I was running some tests just now. It appears the legacy model - EDIT: Found in docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I did make some changes for context to remove all the unneeded code churn to random spacing/docblocks. Generally want to reduce any change but the newly added stuff to make it easier to review diff.
I tested this for real with this sample: iBotPeaches/openai-php-laravel-test@87313ad on both the legacy and new model to confirm the nullable aspect of category_applied_input_types
and works as I expect.
+1
What:
Description:
This PR adds support for category_applied_input_types to the Moderations endpoint, enabling users to identify which input types (e.g., text, image) were flagged for specific categories in moderation results.
Changes
Related: