UI (model selection): hide unavailable model options

This commit is contained in:
nanaya 2023-11-12 11:18:14 +08:00
parent 295864d36b
commit 3a654ba199

View File

@ -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