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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
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.pyindex 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.netfrom typing import Optional, Union, Listimport httpx-from litellm.utils import ModelResponseStream, get_model_info+from litellm.utils import ModelResponseStream, _get_model_info_helperfrom litellm.llms.openai.chat.gpt_transformation import OpenAIGPTConfigfrom litellm._logging import verbose_loggerfrom litellm.llms.ovhcloud.utils import OVHCloudException@@ -28,13 +28,17 @@ class OVHCloudChatConfig(OpenAIGPTConfig):"""supports_function_calling: Optional[bool] = Nonetry:- 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 = Falseexcept Exception as e:verbose_logger.debug(f"Error getting supported OpenAI params: {e}")- pass+ supports_function_calling = Falseoptional_params = super().get_supported_openai_params(model)if supports_function_calling is not True: