From 58ca5e42c24eda7c0ceaac8a228f1ede2f4161db Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 6 Oct 2024 20:41:56 -0700 Subject: [PATCH] refac: url param tool_ids -> tools/tool-ids --- src/lib/components/chat/Chat.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index e432575b2..853ad4c8c 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -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);