Skip to content

Conversation

Eulenator
Copy link

@Eulenator Eulenator commented Oct 7, 2025

Fix missing inner_error in azure ContentPolicyViolationError

Relevant issues

Fixes #9496

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Passing new test:
image

Type

🐛 Bug Fix

Changes

Use the error_str of the original exception instead of the current message. The error_str contains the inner_error of the azure content policy filter.
This is needed on our side to determine the different filter categories of the exception.

Copy link

vercel bot commented Oct 7, 2025

@Eulenator is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

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.

[Bug]: Missing Azure Content Filter results details since v1.59.1
1 participant