Fix mypy error
Some checks failed
Unit Tests: Proxy DB Operations / proxy-db (auth-checks, tests/proxy_unit_tests/test_auth_checks.py tests/proxy_unit_tests/test_user_api_key_auth.py, 20, 8) (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-db (key-generation, tests/proxy_unit_tests/test_key_generate_prisma.py, 30, 0) (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-db (remaining, tests/proxy_unit_tests --ignore=tests/proxy_unit_tests/test_key_generate_prisma.py --ignore=tests/proxy_unit_tests/test_auth_checks.py --ignore=tests/proxy_unit_tests/test_user_api_key_auth.py, 30, 8) (push) Has been cancelled
Unit Tests: Security / security (push) Has been cancelled

This commit is contained in:
Sameer Kankute 2026-04-17 18:58:35 +05:30
parent 27877b4b06
commit d5c8e19970
No known key found for this signature in database

View file

@ -32,6 +32,7 @@ from litellm.types.llms.openai import (
OpenAIWebSearchOptions,
OpenAIWebSearchUserLocation,
OutputTokensDetails,
Reasoning,
ResponseAPIUsage,
ResponsesAPIOptionalRequestParams,
ResponsesAPIResponse,
@ -181,7 +182,7 @@ class LiteLLMCompletionResponsesConfig:
)
# Extract reasoning_effort from reasoning parameter
reasoning_effort = None
reasoning_effort: Optional[Union[Reasoning, str]] = None
reasoning_param = responses_api_request.get("reasoning")
if reasoning_param:
if isinstance(reasoning_param, dict):