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
Merge pull request #17732 from BerriAI/litellm_videos_bugs_2
Sameer Kankute8fafd81f9da6
diff --cc litellm/proxy/route_llm_request.pyindex e55c71d1648,68823828fa1..6b86d722b2d--- a/litellm/proxy/route_llm_request.py+++ b/litellm/proxy/route_llm_request.py@@@ -269,13 -256,20 +269,24 @@@ async def route_request"alist_containers","aretrieve_container","adelete_container",+ "alist_container_files",+ "aretrieve_container_file",+ "adelete_container_file",+ "aretrieve_container_file_content",]:- # moderation endpoint does not require `model` parameter+ # These endpoints can work with or without model parameterreturn getattr(llm_router, f"{route_type}")(**data)+ elif route_type in [+ "avideo_status",+ "avideo_content",+ "avideo_remix",+ ]:+ # Video endpoints: If model is provided (e.g., from decoded video_id), try router first+ try:+ return getattr(llm_router, f"{route_type}")(**data)+ except Exception:+ # If router fails (e.g., model not found in router), fall back to direct call+ return getattr(litellm, f"{route_type}")(**data)elif user_model is not None:return getattr(litellm, f"{route_type}")(**data)