From 47dc891ecce0aeb0decb374697cc3fa5eec6c964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcios=20Batista=20da=20Silva?= Date: Thu, 16 Jan 2025 18:34:39 -0300 Subject: [PATCH] feat: make YouTube Transcripts URL field required (#5686) feat: Enhance YouTube Transcripts component by adding required field validation to URL input This change ensures that users provide a video URL before using the YouTube Transcripts component, preventing potential runtime errors due to missing video source. --- .../base/langflow/components/tools/youtube_transcripts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/base/langflow/components/tools/youtube_transcripts.py b/src/backend/base/langflow/components/tools/youtube_transcripts.py index a2cff988a..19250194b 100644 --- a/src/backend/base/langflow/components/tools/youtube_transcripts.py +++ b/src/backend/base/langflow/components/tools/youtube_transcripts.py @@ -21,6 +21,7 @@ class YouTubeTranscriptsComponent(Component): display_name="Video URL", info="Enter the YouTube video URL to get transcripts from.", tool_mode=True, + required=True, ), DropdownInput( name="transcript_format",