[.NET] How to catch content filter exception in GetStreamingChatMessageContentsAsync #10843
Unanswered
romainsemur
asked this question in
Q&A
Replies: 2 comments 2 replies
-
We wanted to understand what model you're using? |
Beta Was this translation helpful? Give feedback.
2 replies
-
My point is the GetStreamingChatMessageContentsAsync of IChatCompletionService (i'm on Azure Open Ai) throw a generic Exception with a message like : Is there a way to catch an HttpRequestException to have a clear status code of the error or do we have to parse the Exception.message ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the model behind the GetStreamingChatMessageContentsAsync throws a content_filter exception, it just throw a basic exception, is there a way to throws a ContentFilterException ?
Beta Was this translation helpful? Give feedback.
All reactions