diff --git a/litellm/utils.py b/litellm/utils.py index 0e002469d76..1cc7c63e6a5 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -2967,11 +2967,11 @@ def supports_native_streaming(model: str, custom_llm_provider: str | None) -> bo from litellm.litellm_core_utils.get_llm_provider_logic import resolve_model_and_provider_for_metadata try: - model, custom_llm_provider = resolve_model_and_provider_for_metadata( + resolved_model, resolved_provider = resolve_model_and_provider_for_metadata( model=model, custom_llm_provider=custom_llm_provider ) - model_info: Final = get_model_info_helper(model=model, custom_llm_provider=custom_llm_provider) + model_info: Final = get_model_info_helper(model=resolved_model, custom_llm_provider=resolved_provider) supports_native_streaming = model_info.get("supports_native_streaming", True) if supports_native_streaming is None: supports_native_streaming = True