Skip to content

Commit

Permalink
fix check on model
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Mar 14, 2024
1 parent 7250336 commit 70e1560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/SourceDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function SourceDropdown({
<div className="absolute left-0 right-0 z-50 -mt-1 max-h-40 overflow-y-auto rounded-b-xl border-2 bg-white shadow-lg dark:border-chinese-silver dark:bg-dark-charcoal">
{options ? (
options.map((option: any, index: number) => {
if (option.model !== embeddingsName) {
if (option.model === embeddingsName) {
return (
<div
key={index}
Expand Down

0 comments on commit 70e1560

Please sign in to comment.