diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index adce45bd3..3ff8b91b4 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -138,6 +138,7 @@ files = []; selectedToolIds = []; webSearchEnabled = false; + imageGenerationEnabled = false; loaded = false; @@ -153,6 +154,7 @@ files = input.files; selectedToolIds = input.selectedToolIds; webSearchEnabled = input.webSearchEnabled; + imageGenerationEnabled = input.imageGenerationEnabled; } catch (e) {} } @@ -391,11 +393,13 @@ files = input.files; selectedToolIds = input.selectedToolIds; webSearchEnabled = input.webSearchEnabled; + imageGenerationEnabled = input.imageGenerationEnabled; } catch (e) { prompt = ''; files = []; selectedToolIds = []; webSearchEnabled = false; + imageGenerationEnabled = false; } } @@ -697,6 +701,9 @@ if ($page.url.searchParams.get('web-search') === 'true') { webSearchEnabled = true; } + if ($page.url.searchParams.get('image-generation') === 'true') { + imageGenerationEnabled = true; + } if ($page.url.searchParams.get('tools')) { selectedToolIds = $page.url.searchParams diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 40eaaf718..d592040eb 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -870,6 +870,7 @@ atSelectedModel = undefined; selectedToolIds = []; webSearchEnabled = false; + imageGenerationEnabled = false; } }} on:paste={async (e) => { @@ -1056,6 +1057,7 @@ atSelectedModel = undefined; selectedToolIds = []; webSearchEnabled = false; + imageGenerationEnabled = false; } }} rows="1"