Update extensions/llamacpp-extension/src/index.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
parent
42411b5f33
commit
3cd099ee87
@ -1086,7 +1086,7 @@ export default class llamacpp_extension extends AIEngine {
|
||||
const archiveName = await basename(path)
|
||||
logger.info(`Installing backend from path: ${path}`)
|
||||
|
||||
if (!(await fs.existsSync(path)) && !path.endsWith('tar.gz')) {
|
||||
if (!(await fs.existsSync(path)) || !path.endsWith('tar.gz')) {
|
||||
logger.error(`Invalid path or file ${path}`)
|
||||
throw new Error(`Invalid path or file ${path}`)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user