Some small fraction of our chart history data triggers OpenAI content filtering (exact fraction unknown, or I can pre-process and remove problematic data beforehand). When this happens, the whole task fails with an error code and does not complete.
Error code: 400 - {'error': {'message': "The response was filtered due to the prompt triggering Azure OpenAI's content management policy. Please modify your prompt and retry. To learn more about our content filtering policies please read our documentation: https://go.microsoft.com/fwlink/?linkid=2198766", 'type': None, 'param': 'prompt', 'code': 'content_filter', 'status': 400, 'innererror': {'code': 'ResponsibleAIPolicyViolation', 'content_filter_result': {'hate': {'filtered': False, 'severity': 'safe'}, 'jailbreak': {'filtered': True, 'detected': True}, 'self_harm': {'filtered': False, 'severity': 'safe'}, 'sexual': {'filtered': False, 'severity': 'safe'}, 'violence': {'filtered': False, 'severity': 'safe'}}}}}
Problem
Some small fraction of our chart history data triggers OpenAI content filtering (exact fraction unknown, or I can pre-process and remove problematic data beforehand). When this happens, the whole task fails with an error code and does not complete.
Example error:
Expected behavior
Proposed solution
Additional context