fix: inconsistent state of downloading multimodal (#3862)

This commit is contained in:
Faisal Amir 2024-10-22 15:44:13 +07:00 committed by GitHub
parent 6b4e556a7a
commit b14f54e866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@janhq/model-extension",
"productName": "Model Management",
"version": "1.0.33",
"version": "1.0.34",
"description": "Model Management Extension provides model exploration and seamless downloads",
"main": "dist/index.js",
"node": "dist/node/index.cjs.js",

View File

@ -411,7 +411,8 @@ export default class JanModelExtension extends ModelExtension {
.toLowerCase()
.includes(JanModelExtension._tensorRtEngineFormat)
)
})?.length > 0 // TODO: find better way (can use basename to check the file name with source url)
// Check if the number of matched files equals the number of sources
})?.length >= model.sources.length
)
})