Browse Source

Merge pull request #14857 from Classic298/feat/code-interpreter-url-param

feat: Enable Code Interpreter using URL Parameter
Tim Jaeryang Baek 1 week ago
parent
commit
37658e06a2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/components/chat/Chat.svelte

+ 4 - 0
src/lib/components/chat/Chat.svelte

@@ -803,6 +803,10 @@
 			imageGenerationEnabled = true;
 		}
 
+		if ($page.url.searchParams.get('code-interpreter') === 'true') {
+			codeInterpreterEnabled = true;
+		}
+
 		if ($page.url.searchParams.get('tools')) {
 			selectedToolIds = $page.url.searchParams
 				.get('tools')