Skip to content

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

Development

Successfully merging this pull request may close these issues.

Feature Request: Add Support for Content Filter Response Deserialization OR Expose Raw Response in OpenAI Kotlin Client

2 participants