Skip to content

Conversation

@pnookala-godaddy
Copy link
Contributor

Title

fix(openai-video): inherit BaseVideoConfig to enable async content response

Relevant issues

  • Resolves AttributeError when calling avideo_content for OpenAI:
    • "'OpenAIVideoConfig' object has no attribute 'async_transform_video_content_response'"

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

  • Import and subclass the real base class at runtime in OpenAIVideoConfig:
    • from litellm.llms.base_llm.videos.transformation import BaseVideoConfig
    • class OpenAIVideoConfig(BaseVideoConfig):
  • Remove TYPE_CHECKING aliasing of BaseVideoConfig to Any so the class inherits:
    • async_transform_video_content_response(...) default implementation
  • Scope: OpenAI videos only; no API changes; no behavior changes beyond fixing the AttributeError during async content downloads.
Screenshot 2025-11-16 at 4 29 48 PM

@vercel
Copy link

vercel bot commented Nov 17, 2025

@pnookala-godaddy is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant