Skip to content

.Net: Bug: C# Content filtering annotations missing #9593

@rsaundersbdo

Description

@rsaundersbdo

Describe the bug
When receiving a 400 content filter exception from sending a message to an Azure OpenAI model the inner exception that is supposed to include the reasoning for the exception is null.

To Reproduce
Steps to reproduce the behavior:
1.Setup an Azure OpenAI model with content filter set to block on message inputs.
2. Send a streaming message request that would trigger the content filtering to the model.
3. Inspect the expectation and see that the inner exception is null.

Expected behavior
The inner exception is expected to be populated with the information on why the message was blocked.

Screenshots
Image

Platform

  • OS: Windows
  • IDE: Visual Studio
  • Language: C#
  • Source: NuGet package version 1.27.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETIssue or Pull requests regarding .NET codebugSomething isn't workingstaleIssue is stale because it has been open for a while and has no activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions