Skip to content

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]

refactor(videos): make video upload param keyword-only on public edit fns

mateo-berrieb00f46c5d70
diff --git a/litellm/videos/main.py b/litellm/videos/main.py
index dc80d508a20..445435a30fa 100644
--- a/litellm/videos/main.py
+++ b/litellm/videos/main.py
@@ -1341,12 +1341,13 @@ def video_get_character(
async def avideo_edit(
video_id: str,
prompt: str,
- video: FileContent | None = None,
timeout=600,
custom_llm_provider=None,
extra_headers: dict[str, object] | None = None,
extra_query: dict[str, object] | None = None,
extra_body: dict[str, object] | None = None,
+ *,
+ video: FileContent | None = None,
**kwargs,
) -> VideoObject:
"""
@@ -1395,12 +1396,13 @@ async def avideo_edit(
def video_edit(
video_id: str,
prompt: str,
- video: FileContent | None = None,
timeout=600,
custom_llm_provider=None,
extra_headers: dict[str, object] | None = None,
extra_query: dict[str, object] | None = None,
extra_body: dict[str, object] | None = None,
+ *,
+ video: FileContent | None = None,
**kwargs,
) -> VideoObject | Coroutine[object, object, VideoObject]:
"""