feat(database): ensure system_prompts table creation is conditional; update journal and snapshot files
This commit is contained in:
parent
70cdad1cd4
commit
e98138c06d
4 changed files with 4 additions and 7 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -166,4 +166,4 @@
|
||||||
"internal": {
|
"internal": {
|
||||||
"indexes": {}
|
"indexes": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue