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 prompt filter results to content filters #702

Conversation

jchaykow
Copy link
Contributor

@jchaykow jchaykow commented Apr 9, 2024

Describe the change
Adding field for prompt_filter_results which is in the open content filters to assess the content of the user input. Current implementation in go-openai will only return content filter information on the model output using ChatCompletionStreamResponse. This is for AzureOpenAI spec.

Provide OpenAI documentation link
Relevant API doc: https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/content-filter
[See Bottom under Annotations]

Describe your solution
Change struct

Copy link
Owner

@sashabaranov sashabaranov 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!

@sashabaranov sashabaranov merged commit c6a63ed into sashabaranov:master Apr 16, 2024
1 check passed
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.

None yet

2 participants