Skip to content

Commit

Permalink
fix: model dropdown should show recommended models to download (janhq…
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Sep 30, 2024
1 parent ba1ddac commit 7c63914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/helpers/atoms/Model.atom.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
})
})

Expand Down
4 changes: 2 additions & 2 deletions web/helpers/atoms/Model.atom.ts
Original file line number Diff line number Diff line change
@@ -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: '' })
Expand Down Expand Up @@ -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])

0 comments on commit 7c63914

Please sign in to comment.