chore(responses): satisfy basedpyright gate

This commit is contained in:
Onat Özmen 2026-08-30 18:40:50 +03:00
parent 88a444f8f5
commit 031cad4cfd

View file

@ -136,10 +136,15 @@ class OpenAIResponsesAPIConfig(BaseResponsesAPIConfig):
from litellm.llms.openai.chat.gpt_5_transformation import OpenAIGPT5Config
unsupported_effort: Final = (
effort == "xhigh" and not OpenAIGPT5Config._supports_reasoning_effort_level(model, effort)
effort == "xhigh"
and not OpenAIGPT5Config._supports_reasoning_effort_level( # pyright: ignore[reportPrivateUsage, reportArgumentType, reportCallIssue] # shared GPT-5 capability gate
model, effort
)
) or (
effort in ("minimal", "low")
and OpenAIGPT5Config._is_reasoning_effort_level_explicitly_disabled(model, effort)
and OpenAIGPT5Config._is_reasoning_effort_level_explicitly_disabled( # pyright: ignore[reportPrivateUsage, reportArgumentType, reportCallIssue] # shared GPT-5 capability gate
model, effort
)
)
if unsupported_effort:
if drop_params or litellm.drop_params: