mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-06 22:03:59 -05:00
fix(blocks): add missing user_id parameter to video blocks
Add required user_id parameter to TranscribeVideoBlock and EditVideoByTextBlock run methods, and pass it to store_media_file() calls to fix block test failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Nicholas Tindle <ntindle@users.noreply.github.com>
This commit is contained in:
@@ -136,12 +136,14 @@ class EditVideoByTextBlock(Block):
|
||||
*,
|
||||
credentials: APIKeyCredentials,
|
||||
graph_exec_id: str,
|
||||
user_id: str,
|
||||
**kwargs,
|
||||
) -> BlockOutput:
|
||||
try:
|
||||
local_path = await store_media_file(
|
||||
graph_exec_id=graph_exec_id,
|
||||
file=input_data.video_in,
|
||||
user_id=user_id,
|
||||
return_content=False,
|
||||
)
|
||||
abs_path = get_exec_file_path(graph_exec_id, local_path)
|
||||
|
||||
@@ -116,12 +116,14 @@ class TranscribeVideoBlock(Block):
|
||||
*,
|
||||
credentials: APIKeyCredentials,
|
||||
graph_exec_id: str,
|
||||
user_id: str,
|
||||
**kwargs,
|
||||
) -> BlockOutput:
|
||||
try:
|
||||
local_path = await store_media_file(
|
||||
graph_exec_id=graph_exec_id,
|
||||
file=input_data.video_in,
|
||||
user_id=user_id,
|
||||
return_content=False,
|
||||
)
|
||||
abs_path = get_exec_file_path(graph_exec_id, local_path)
|
||||
|
||||
Reference in New Issue
Block a user