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(openai-video): inherit BaseVideoConfig to enable async content response (#16708)
pnookala-godaddy52337961dcba
diff --git a/litellm/llms/openai/videos/transformation.py b/litellm/llms/openai/videos/transformation.pyindex 8f5d41fe467..d1d3fc2919e 100644--- a/litellm/llms/openai/videos/transformation.py+++ b/litellm/llms/openai/videos/transformation.py@@ -4,6 +4,7 @@ from typing import castimport httpxfrom httpx._types import RequestFiles+from litellm.llms.base_llm.videos.transformation import BaseVideoConfigfrom litellm.types.videos.main import VideoCreateOptionalRequestParamsfrom litellm.types.llms.openai import CreateVideoRequestfrom litellm.types.router import GenericLiteLLMParams@@ -15,15 +16,12 @@ from litellm.llms.openai.image_edit.transformation import ImageEditRequestUtilsif TYPE_CHECKING:from litellm.litellm_core_utils.litellm_logging import Logging as _LiteLLMLoggingObj- from ...base_llm.videos.transformation import BaseVideoConfig as _BaseVideoConfigfrom ...base_llm.chat.transformation import BaseLLMException as _BaseLLMExceptionLiteLLMLoggingObj = _LiteLLMLoggingObj- BaseVideoConfig = _BaseVideoConfigBaseLLMException = _BaseLLMExceptionelse:LiteLLMLoggingObj = Any- BaseVideoConfig = AnyBaseLLMException = Anydiff --git a/tests/test_litellm/test_video_generation.py b/tests/test_litellm/test_video_generation.pyindex 3ba4a9ddda2..4c8e166f1c4 100644--- a/tests/test_litellm/test_video_generation.py+++ b/tests/test_litellm/test_video_generation.py@@ -760,5 +760,10 @@ def test_video_content_handler_uses_get_for_openai():assert called_url == "https://api.openai.com/v1/videos/video_abc/content"+def test_openai_video_config_has_async_transform():+ """Ensure OpenAIVideoConfig exposes async_transform_video_content_response at runtime."""+ cfg = OpenAIVideoConfig()+ assert callable(getattr(cfg, "async_transform_video_content_response", None))+if __name__ == "__main__":pytest.main([__file__])