Timothy J. Baek 10 months ago
parent
commit
48ac4d9f2a
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/lib/components/chat/MessageInput/InputMenu.svelte

+ 10 - 0
src/lib/components/chat/MessageInput/InputMenu.svelte

@@ -21,6 +21,16 @@
 	export let tools = {};
 	export let tools = {};
 	export let onClose: Function;
 	export let onClose: Function;
 
 
+	$: tools = Object.fromEntries(
+		Object.keys(tools).map((toolId) => [
+			toolId,
+			{
+				...tools[toolId],
+				enabled: selectedToolIds.includes(toolId)
+			}
+		])
+	);
+
 	let show = false;
 	let show = false;
 </script>
 </script>