BerriAI/litellm · error · NotImplementedError
video edit is not supported for this provider
Error message
video edit is not supported for this provider
What it means
Optional-capability stub: transform_video_edit_request raises by default because this video provider does not support editing an existing video. It fires when a video edit operation is routed to a provider that never overrode this method.
Solutions
- Use a video provider that supports video editing.
- Check the provider documentation for supported video operations before calling.
- Regenerate the video with new parameters instead of editing.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at litellm/llms/base_llm/videos/transformation.py:344 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/70ba2e9f7d459b95.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/base_llm/videos/transformation.py:344
return None
def transform_video_edit_request(
self,
prompt: str,
video_id: str,
api_base: str,
litellm_params: GenericLiteLLMParams,
headers: dict,
extra_body: dict[str, Any] | None = None,
prefetched_source_data: dict[str, Any] | None = None,
) -> tuple[str, dict]:
"""
Transform the video edit request into a URL and JSON data.
Returns:
Tuple[str, Dict]: (url, data) for the POST request
"""
raise NotImplementedError("video edit is not supported for this provider")
def transform_video_edit_response(
self,
raw_response: httpx.Response,
logging_obj: LiteLLMLoggingObj,
custom_llm_provider: str | None = None,
request_data: dict | None = None,
) -> VideoObject:
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,View on GitHub (pinned to 77b7c6c40c)