diff --git a/src/App.svelte b/src/App.svelte index 1e772f4..d38a3aa 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -7,7 +7,7 @@ import Home from './lib/Home.svelte' import Chat from './lib/Chat.svelte' import NewChat from './lib/NewChat.svelte' - import { chatsStorage } from './lib/Storage.svelte' + import { chatsStorage, setGlobalSettingValueByKey } from './lib/Storage.svelte' import { Modals, closeModal } from 'svelte-modals' import { dispatchModalEsc, checkModalEsc } from './lib/Util.svelte' import { set as setOpenAI } from './lib/providers/openai/util.svelte' @@ -19,6 +19,10 @@ if (urlParams.has('key')) { setOpenAI({ apiKey: urlParams.get('key') as string }) } + if (urlParams.has('petals')) { + console.log('enablePetals') + setGlobalSettingValueByKey('enablePetals', true) + } // The definition of the routes with some conditions const routes = {