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

Add Support for Azure Content Filter Response #300

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gh-abhay
Copy link

Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue Fix #294

Describe your change

Context:

  • The current OpenAI Kotlin client cannot deserialize the Content Filter response returned by the Azure OpenAI API (Content Filter Documentation).

Changes:

  • Add a prompt filter parameter as optional in the current Chat Completions and Completions response.
  • Add a content filter parameter as optional in the current Chat Choice and Chat Chunk response.

What problem is this fixing?

This feature request aims to address the inability to use the Content Filter feature of the Azure OpenAI API with the current OpenAI Kotlin client. Currently, there is no workaround for this issue, which limits the functionality and usability of the client. Developers are unable to filter content as per their requirements, which can be a crucial feature for many applications.

Copy link
Owner

@aallam aallam left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I've left a small suggestion :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants