forked from XiaoMo/ChatGPT-Next-Web
UI (model selection): hide unavailable model options
This commit is contained in:
parent
295864d36b
commit
3a654ba199
@ -25,9 +25,11 @@ 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 value={v.name} key={i}>
|
||||||
|
{v.displayName}
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
|
Loading…
Reference in New Issue
Block a user