feat(database): ensure system_prompts table creation is conditional; update journal and snapshot files

This commit is contained in:
Willie Zutz 2025-07-17 00:00:52 -06:00
parent 70cdad1cd4
commit e98138c06d
4 changed files with 4 additions and 7 deletions

View file

@ -1,4 +1,4 @@
CREATE TABLE `system_prompts` ( CREATE TABLE IF NOT EXISTS `system_prompts` (
`id` text PRIMARY KEY NOT NULL, `id` text PRIMARY KEY NOT NULL,
`name` text NOT NULL, `name` text NOT NULL,
`content` text NOT NULL, `content` text NOT NULL,

View file

@ -135,10 +135,7 @@ export const POST = async (req: Request) => {
), ),
}, },
AIMLAPI: { AIMLAPI: {
API_KEY: getUpdatedProtectedValue( API_KEY: getUpdatedProtectedValue(config.aimlApiKey, getAimlApiKey()),
config.aimlApiKey,
getAimlApiKey(),
),
}, },
LM_STUDIO: { LM_STUDIO: {
API_URL: config.lmStudioApiUrl, API_URL: config.lmStudioApiUrl,