fix: model dropdown should show recommended models to download (#3742)
This commit is contained in:
parent
ba1ddacde3
commit
7c63914e64
@ -38,7 +38,7 @@ describe('Model.atom.ts', () => {
|
|||||||
|
|
||||||
describe('showEngineListModelAtom', () => {
|
describe('showEngineListModelAtom', () => {
|
||||||
it('should initialize as an empty array', () => {
|
it('should initialize as an empty array', () => {
|
||||||
expect(ModelAtoms.showEngineListModelAtom.init).toEqual([])
|
expect(ModelAtoms.showEngineListModelAtom.init).toEqual(['nitro'])
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { ImportingModel, Model, ModelFile } from '@janhq/core'
|
import { ImportingModel, InferenceEngine, Model, ModelFile } from '@janhq/core'
|
||||||
import { atom } from 'jotai'
|
import { atom } from 'jotai'
|
||||||
|
|
||||||
export const stateModel = atom({ state: 'start', loading: false, model: '' })
|
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 selectedModelAtom = atom<ModelFile | undefined>(undefined)
|
||||||
|
|
||||||
export const showEngineListModelAtom = atom<string[]>([])
|
export const showEngineListModelAtom = atom<string[]>([InferenceEngine.nitro])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user