fix: wrong selected model ref (#1638)
This commit is contained in:
parent
f4f861d0e9
commit
246b12e54f
@ -50,7 +50,7 @@ export default function DropdownListSidebar() {
|
||||
const { recommendedModel, downloadedModels } = useRecommendedModel()
|
||||
|
||||
const selectedName =
|
||||
downloadedModels.filter((x) => x.id === selected?.id)[0]?.name ?? ''
|
||||
downloadedModels.filter((x) => x.id === selectedModel?.id)[0]?.name ?? ''
|
||||
/**
|
||||
* Default value for max_tokens and ctx_len
|
||||
* Its to avoid OOM issue since a model can set a big number for these settings
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user