BerriAI/litellm · error · NotImplementedError

video extension is not supported for this provider

Error message

video extension is not supported for this provider

What it means

Optional-capability stub: transform_video_extension_request raises by default because this video provider does not support extending a video's duration. It fires when an extension request is routed to a provider without that capability.

Solutions

  1. Use a video provider that supports video extension.
  2. Check the provider documentation for supported video operations before calling.
  3. Generate a longer video directly instead of extending.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at litellm/llms/base_llm/videos/transformation.py:371 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18). Data as JSON: /api/errors/f0fffb99a0283821. Report an issue: GitHub.

Appendix: source

Thrown at litellm/llms/base_llm/videos/transformation.py:371

        raise NotImplementedError("video edit is not supported for this provider")

    def transform_video_extension_request(
        self,
        prompt: str,
        video_id: str,
        seconds: str,
        api_base: str,
        litellm_params: GenericLiteLLMParams,
        headers: dict,
        extra_body: dict[str, Any] | None = None,
    ) -> tuple[str, dict]:
        """
        Transform the video extension request into a URL and JSON data.

        Returns:
            Tuple[str, Dict]: (url, data) for the POST request
        """
        raise NotImplementedError("video extension is not supported for this provider")

    def transform_video_extension_response(
        self,
        raw_response: httpx.Response,
        logging_obj: LiteLLMLoggingObj,
        custom_llm_provider: str | None = None,
    ) -> VideoObject:
        raise NotImplementedError("video extension is not supported for this provider")

    def get_error_class(self, error_message: str, status_code: int, headers: dict | httpx.Headers) -> BaseLLMException:
        from ..chat.transformation import BaseLLMException

        raise BaseLLMException(
            status_code=status_code,
            message=error_message,
            headers=headers,
        )

View on GitHub (pinned to 77b7c6c40c)