chore: add import name for legacy models

This commit is contained in:
Louis 2024-11-07 13:34:09 +07:00
parent 40019892b8
commit 2e9b7fdad2
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -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
) )
) )
) )