set default token to empty string

This commit is contained in:
Artiom Levinton
2024-05-23 13:37:07 +03:00
parent 89ec802a92
commit 6d60fc28ef

View File

@@ -13,7 +13,7 @@
export const chatsStorage = persisted('chats', [] as Chat[])
export const latestModelMap = persisted('latestModelMap', {} as Record<Model, Model>) // What was returned when a model was requested
export const globalStorage = persisted('global', {} as GlobalSettings)
const apiKeyFromEnv = import.meta.env.OPENAI_API_KEY || 'some default token'
const apiKeyFromEnv = import.meta.env.OPENAI_API_KEY || ''
export const apiKeyStorage = persisted('apiKey', apiKeyFromEnv as string)
export let checkStateChange = writable(0) // Trigger for Chat
export let showSetChatSettings = writable(false) //