Closed aeras3637 closed 4 weeks ago
According to this article your prompt might be filtered by Azure Content Filtering (Giving a 400 Badrequest).
Regarding the ClientResultException
this is an exception triggered by the OpenAI SDK
and is outside of our control, if you want to capture more information about the exception try looking for ClientResultException.GetRawResponse()` as described in this document.
Describe the bug InnerException not set when content filter exception occurs.
To Reproduce
Expected behavior When a content filter exception occurs, the category must be identified in order to inform the user for what reason the content filter occurred.
Platform
OS: Windows IDE: Visual Studio Language: C# Source: PackageReference Include="Azure.AI.OpenAI" Version="2.0.0-beta.2" PackageReference Include="Microsoft.SemanticKernel" Version="1.18.0-rc" PackageReference Include="Microsoft.SemanticKernel.Planners.Handlebars" Version="1.18.0-preview" PackageReference Include="Microsoft.SemanticKernel.Plugins.Core" Version="1.18.0-alpha" PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" Version="1.18.0-alpha"