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
docs(main.py): clarify 'num_retries' usage
Krrish Dholakiaa858cc4d0ce2
diff --git a/litellm/main.py b/litellm/main.pyindex c731eacc625..ba02c37ccf8 100644--- a/litellm/main.py+++ b/litellm/main.py@@ -686,7 +686,9 @@ def completion(proxy_server_request = kwargs.get("proxy_server_request", None)fallbacks = kwargs.get("fallbacks", None)headers = kwargs.get("headers", None) or extra_headers- num_retries = kwargs.get("num_retries", None) ## deprecated+ num_retries = kwargs.get(+ "num_retries", None+ ) ## alt. param for 'max_retries'. Use this to pass retries w/ instructor.max_retries = kwargs.get("max_retries", None)cooldown_time = kwargs.get("cooldown_time", None)context_window_fallback_dict = kwargs.get("context_window_fallback_dict", None)