mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
enh: enable tools with url search param
This commit is contained in:
parent
dcd32faa83
commit
67efd0dd39
@ -282,6 +282,10 @@
|
||||
|
||||
if ($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) {
|
||||
await tick();
|
||||
|
Loading…
Reference in New Issue
Block a user