mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 04:02:41 +08:00
fix: #2303 should select custom models
This commit is contained in:
@@ -9,10 +9,6 @@ export function ModelConfigList(props: {
|
||||
updateConfig: (updater: (config: ModelConfig) => void) => void;
|
||||
}) {
|
||||
const config = useAppConfig();
|
||||
const customModels = config.customModels
|
||||
.split(",")
|
||||
.map((m) => ({ name: m, available: true }));
|
||||
const models = config.models.concat(customModels);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -28,7 +24,7 @@ export function ModelConfigList(props: {
|
||||
);
|
||||
}}
|
||||
>
|
||||
{models.map((v, i) => (
|
||||
{config.allModels().map((v, i) => (
|
||||
<option value={v.name} key={i} disabled={!v.available}>
|
||||
{v.name}
|
||||
</option>
|
||||
|
Reference in New Issue
Block a user