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
67efd0dd
Commit
67efd0dd
authored
Aug 02, 2024
by
Timothy J. Baek
Browse files
enh: enable tools with url search param
parent
dcd32faa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/lib/components/chat/Chat.svelte
src/lib/components/chat/Chat.svelte
+4
-0
No files found.
src/lib/components/chat/Chat.svelte
View file @
67efd0dd
...
@@ -282,6 +282,10 @@
...
@@ -282,6 +282,10 @@
if ($page.url.searchParams.get('q')) {
if ($page.url.searchParams.get('q')) {
prompt = $page.url.searchParams.get('q') ?? '';
prompt = $page.url.searchParams.get('q') ?? '';
selectedToolIds = ($page.url.searchParams.get('tool_ids') ?? '')
.split(',')
.map((id) => id.trim())
.filter((id) => id);
if (prompt) {
if (prompt) {
await tick();
await tick();
...
...
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