From 2998802c00961e36115bed93f5eda446e8500c75 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 17 Oct 2025 11:58:14 +0200 Subject: [PATCH] fix: Resolve issue with wrong error for OpenAI --- .../litellm_instructor/llm/openai/adapter.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cognee/infrastructure/llm/structured_output_framework/litellm_instructor/llm/openai/adapter.py b/cognee/infrastructure/llm/structured_output_framework/litellm_instructor/llm/openai/adapter.py index 8877c2bdf..305b426b8 100644 --- a/cognee/infrastructure/llm/structured_output_framework/litellm_instructor/llm/openai/adapter.py +++ b/cognee/infrastructure/llm/structured_output_framework/litellm_instructor/llm/openai/adapter.py @@ -156,10 +156,7 @@ class OpenAIAdapter(LLMInterface): InstructorRetryException, ) as e: if not (self.fallback_model and self.fallback_api_key): - raise ContentPolicyFilterError( - f"The provided input contains content that is not aligned with our content policy: {text_input}" - ) from e - + raise e try: return await self.aclient.chat.completions.create( model=self.fallback_model,