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(lint): remove unreachable None check in _resolve_fine_tuning_timeout
Julio Quinterosb3bbcd3955e3
diff --git a/litellm/fine_tuning/main.py b/litellm/fine_tuning/main.pyindex 4c7c7f2c226..9b69a7a5bb1 100644--- a/litellm/fine_tuning/main.py+++ b/litellm/fine_tuning/main.py@@ -131,13 +131,11 @@ def _resolve_fine_tuning_timeout(custom_llm_provider: str,) -> float:"""Normalise a raw timeout value to a float (seconds) for fine-tuning calls."""- timeout = timeout or 600+ timeout = timeout or 600.0if isinstance(timeout, httpx.Timeout):if not supports_httpx_timeout(custom_llm_provider):return float(timeout.read or 600)return timeout # type: ignore[return-value]- if timeout is None:- return 600.0return float(timeout)