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) => ( {allModels
<option value={v.name} key={i} disabled={!v.available}> .filter((v) => v.available)
{v.name} .map((v, i) => (
</option> <option value={v.name} key={i}>
))} {v.displayName}
</option>
))}
</Select> </Select>
</ListItem> </ListItem>
<ListItem <ListItem