mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
refactor(videos): make video upload param keyword-only on public edit fns
Keeps positional callers of litellm.video_edit / avideo_edit binding timeout as before instead of misbinding it to the new video argument.
This commit is contained in:
parent
7d0df4a062
commit
eb00f46c5d
1 changed files with 4 additions and 2 deletions
|
|
@ -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]:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue