Skip to content

Commit

Permalink
UI (model selection): hide unavailable model options
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya-tachibana committed Nov 12, 2023
1 parent 295864d commit 3a654ba
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/components/model-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ export function ModelConfigList(props: {
);
}}
>
{allModels.map((v, i) => (
<option value={v.name} key={i} disabled={!v.available}>
{v.name}
</option>
))}
{allModels
.filter((v) => v.available)
.map((v, i) => (
<option value={v.name} key={i}>
{v.displayName}
</option>
))}
</Select>
</ListItem>
<ListItem
Expand Down

0 comments on commit 3a654ba

Please sign in to comment.