Skip to content

Commit

Permalink
fix: wrong selected model ref (janhq#1638)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-menlo authored Jan 17, 2024
1 parent f4f861d commit 246b12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/containers/DropdownListSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 246b12e

Please sign in to comment.