fix: remove remote model from shortcut models dialog
This commit is contained in:
parent
994c6e8acc
commit
c723fb6866
@ -1,5 +1,6 @@
|
||||
import { Fragment, useState, useEffect } from 'react'
|
||||
|
||||
import { InferenceEngine } from '@janhq/core'
|
||||
import {
|
||||
CommandModal,
|
||||
CommandEmpty,
|
||||
@ -57,7 +58,11 @@ export default function CommandListDownloadedModel() {
|
||||
<CommandEmpty>No Model found.</CommandEmpty>
|
||||
{!isNotDownloadedModel && (
|
||||
<CommandGroup heading="Your Model">
|
||||
{downloadedModels.map((model, i) => {
|
||||
{downloadedModels
|
||||
.filter((model) => {
|
||||
return model.engine === InferenceEngine.nitro
|
||||
})
|
||||
.map((model, i) => {
|
||||
return (
|
||||
<CommandItem
|
||||
key={i}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user