Make ruff happy

This commit is contained in:
oryx1729 2025-09-20 17:02:31 -07:00
parent 766b300fbc
commit 1f63b6db55

View file

@ -32,6 +32,7 @@ logger = get_logger()
# litellm to drop unsupported params, e.g., reasoning_effort when not supported by the model.
litellm.drop_params = True
class OpenAIAdapter(LLMInterface):
"""
Adapter for OpenAI's GPT-3, GPT-4 API.
@ -140,7 +141,7 @@ class OpenAIAdapter(LLMInterface):
ContentFilterFinishReasonError,
ContentPolicyViolationError,
InstructorRetryException,
) as error:
):
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}"