add VITE prefix to token var

This commit is contained in:
Artiom Levinton
2024-06-06 17:29:28 +03:00
parent af101786af
commit 309e246dce

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 || ''
const apiKeyFromEnv = import.meta.env.VITE_OPENAI_API_KEY || ''
export const apiKeyStorage = persisted('apiKey', apiKeyFromEnv as string)
export let checkStateChange = writable(0) // Trigger for Chat
export let showSetChatSettings = writable(false) //