Merge pull request #5954 from open-webui/dev

refac: url param tool_ids -> tools/tool-ids
This commit is contained in:
Timothy Jaeryang Baek 2024-10-07 05:43:56 +02:00 committed by GitHub
commit 8b3972c6df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -354,7 +354,11 @@
if ($page.url.searchParams.get('q')) {
prompt = $page.url.searchParams.get('q') ?? '';
selectedToolIds = ($page.url.searchParams.get('tool_ids') ?? '')
selectedToolIds = (
$page.url.searchParams.get('tools') ??
$page.url.searchParams.get('tool-ids') ??
''
)
.split(',')
.map((id) => id.trim())
.filter((id) => id);