chore: add import name for legacy models
This commit is contained in:
parent
40019892b8
commit
2e9b7fdad2
@ -9,7 +9,7 @@ import {
|
|||||||
DownloadState,
|
DownloadState,
|
||||||
events,
|
events,
|
||||||
DownloadEvent,
|
DownloadEvent,
|
||||||
OptionType
|
OptionType,
|
||||||
} from '@janhq/core'
|
} from '@janhq/core'
|
||||||
import { CortexAPI } from './cortex'
|
import { CortexAPI } from './cortex'
|
||||||
import { scanModelsFolder } from './legacy/model-json'
|
import { scanModelsFolder } from './legacy/model-json'
|
||||||
@ -189,7 +189,8 @@ export default class JanModelExtension extends ModelExtension {
|
|||||||
model.sources[0]?.url.split('/').pop() ??
|
model.sources[0]?.url.split('/').pop() ??
|
||||||
model.id,
|
model.id,
|
||||||
]) // Copied models
|
]) // Copied models
|
||||||
: model.sources[0].url // Symlink models
|
: model.sources[0].url, // Symlink models,
|
||||||
|
model.name
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user