This commit is contained in:
Webifi 2023-06-03 13:15:51 -05:00
parent aa94788573
commit 95ce41116b
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
import { addChat, cleanSettingValue, setChatSettingValue } from './Storage.svelte'
import type { Chat, ChatSetting, ChatSettings, SettingPrompt } from './Types.svelte'
import { autoGrowInputOnEvent } from './Util.svelte'
import { replace } from 'svelte-spa-router';
import { replace } from 'svelte-spa-router'
export let setting:ChatSetting
export let chatSettings:ChatSettings

View File

@ -32,7 +32,7 @@
import { afterUpdate } from 'svelte'
import ChatSettingField from './ChatSettingField.svelte'
import { getModelMaxTokens } from './Stats.svelte'
import { replace } from 'svelte-spa-router';
import { replace } from 'svelte-spa-router'
export let chatId:number
export const show = () => { showSettings() }

View File

@ -22,7 +22,7 @@
return chatId
}
export const addChat = (profile:ChatSettings|undefined=undefined): number => {
export const addChat = (profile:ChatSettings|undefined = undefined): number => {
const chats = get(chatsStorage)
// Find the max chatId