diff --git a/litellm/litellm_core_utils/get_litellm_params.py b/litellm/litellm_core_utils/get_litellm_params.py index 70516f1adf1..b36c4d6db6f 100644 --- a/litellm/litellm_core_utils/get_litellm_params.py +++ b/litellm/litellm_core_utils/get_litellm_params.py @@ -32,9 +32,6 @@ AWS_CREDENTIAL_KWARGS_KEYS: Final = frozenset( PROVIDER_AFFINITY_HEADER_KWARG_KEY: Final = "provider_affinity_header" -# Internal reasoning-history options that `completion()` forwards from its own -# kwargs into `get_litellm_params`, which are otherwise invisible to it because -# that call site passes explicit named arguments rather than `**kwargs`. REASONING_TRANSPORT_KWARGS_KEYS: Final = frozenset({"forward_reasoning_content", "reasoning_content_field"}) # Pre-define optional kwargs keys as frozenset for O(1) lookups diff --git a/tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py index 3167e1e6cba..e756a039608 100644 --- a/tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py +++ b/tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py @@ -1425,8 +1425,6 @@ class TestUpdateModel: mock_prisma.db.litellm_proxymodeltable.update.assert_awaited_once() mock_clear_cache.assert_awaited_once_with() stored = json.loads(mock_prisma.db.litellm_proxymodeltable.update.call_args.kwargs["data"]["litellm_params"]) - # The endpoint encrypts every incoming litellm_param, so the stored reasoning field is - # read back through the real decrypt path instead of a stubbed encryption helper. assert decrypt_value_helper(stored["reasoning_content_field"], key="reasoning_content_field") == (reasoning_field or "reasoning") if reasoning_field is None: assert stored["reasoning_content_field"] == existing_row.litellm_params["reasoning_content_field"]