Adding content_filter_results to generationInfo with AzureChatOpenAI #6834
aleclair-KoAi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
With OpenAI chat_models we only keep newTokenIndices (prompt and completion), finish_reason and system_fingerprint. I would like to add content_filter_results to get more informations from my content filter.
Motivation
I'm frustated to get finish_reason "content_filter" without any informations about what could have been detected or filtered.
Proposal (If applicable)
If want to modify chat_models file to add content_filter_results in generationInfo where it is needed :
Beta Was this translation helpful? Give feedback.
All reactions