Move cached data to tmp
This commit is contained in:
parent
b2a2af01a9
commit
ffd3e2b2c0
|
@ -112,4 +112,3 @@ budibase-datasource
|
|||
|
||||
*.iml
|
||||
.nx
|
||||
llm-output/*
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 8e3db232903de9dc30706fc5ab712a14116a5935
|
||||
Subproject commit 8e49f29207555b9fa43eb33063041bebc0e0b5b6
|
|
@ -50,7 +50,11 @@ export async function generateTables(
|
|||
})
|
||||
|
||||
if (!useCached) {
|
||||
const dir = path.join(process.env.PWD!, `../../llm-output/${cacheKey}`)
|
||||
const baseDir = path.join(objectStore.budibaseTempDir(), "llm-output")
|
||||
if (!fs.existsSync(baseDir)) {
|
||||
fs.mkdirSync(baseDir)
|
||||
}
|
||||
const dir = path.join(baseDir, cacheKey)
|
||||
if (!fs.existsSync(dir)) {
|
||||
fs.mkdirSync(dir)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue