Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
78c2f16c
Unverified
Commit
78c2f16c
authored
May 08, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
May 08, 2024
Browse files
Merge pull request #2115 from open-webui/dev
enhancement: youtu.be url support
parents
61ffbf5b
bcd5853c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/lib/components/chat/MessageInput/Documents.svelte
src/lib/components/chat/MessageInput/Documents.svelte
+5
-1
No files found.
src/lib/components/chat/MessageInput/Documents.svelte
View file @
78c2f16c
...
...
@@ -143,7 +143,11 @@
</button>
{/each}
{#if prompt.split(' ')?.at(0)?.substring(1).startsWith('https://www.youtube.com')}
{#if prompt
.split(' ')
.some((s) => s.substring(1).startsWith('https://www.youtube.com') || s
.substring(1)
.startsWith('https://youtu.be'))}
<button
class="px-3 py-1.5 rounded-xl w-full text-left bg-gray-100 selected-command-option-button"
type="button"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment