fix: model dropdown should show recommended models to download (#3742)

This commit is contained in:
Louis 2024-09-30 14:34:27 +07:00 committed by GitHub
parent ba1ddacde3
commit 7c63914e64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ describe('Model.atom.ts', () => {
describe('showEngineListModelAtom', () => {
it('should initialize as an empty array', () => {
expect(ModelAtoms.showEngineListModelAtom.init).toEqual([])
expect(ModelAtoms.showEngineListModelAtom.init).toEqual(['nitro'])
})
})

View File

@ -1,4 +1,4 @@
import { ImportingModel, Model, ModelFile } from '@janhq/core'
import { ImportingModel, InferenceEngine, Model, ModelFile } from '@janhq/core'
import { atom } from 'jotai'
export const stateModel = atom({ state: 'start', loading: false, model: '' })
@ -133,4 +133,4 @@ export const updateImportingModelAtom = atom(
export const selectedModelAtom = atom<ModelFile | undefined>(undefined)
export const showEngineListModelAtom = atom<string[]>([])
export const showEngineListModelAtom = atom<string[]>([InferenceEngine.nitro])