Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: resolve recursion in OVHCloud get_supported_openai_params (#24118)

Mavikbe2c679f2dfd
diff --git a/litellm/llms/ovhcloud/chat/transformation.py b/litellm/llms/ovhcloud/chat/transformation.py
index e2a9fea7897..84090fafd31 100644
--- a/litellm/llms/ovhcloud/chat/transformation.py
+++ b/litellm/llms/ovhcloud/chat/transformation.py
@@ -7,7 +7,7 @@ More information on our website: https://endpoints.ai.cloud.ovh.net
from typing import Optional, Union, List
import httpx
-from litellm.utils import ModelResponseStream, get_model_info
+from litellm.utils import ModelResponseStream, _get_model_info_helper
from litellm.llms.openai.chat.gpt_transformation import OpenAIGPTConfig
from litellm._logging import verbose_logger
from litellm.llms.ovhcloud.utils import OVHCloudException
@@ -28,13 +28,17 @@ class OVHCloudChatConfig(OpenAIGPTConfig):
"""
supports_function_calling: Optional[bool] = None
try:
- model_info = get_model_info(model, custom_llm_provider="ovhcloud")
+ model_info = _get_model_info_helper(
+ model, custom_llm_provider="ovhcloud"
+ )
supports_function_calling = model_info.get(
- "supports_function_calling", False
+ "supports_function_calling", None
)
+ if supports_function_calling is None:
+ supports_function_calling = False
except Exception as e:
verbose_logger.debug(f"Error getting supported OpenAI params: {e}")
- pass
+ supports_function_calling = False
optional_params = super().get_supported_openai_params(model)
if supports_function_calling is not True: