fix: custom config overwrite input value

This commit is contained in:
jialin
2026-02-25 10:42:06 +08:00
parent 200d63e5fc
commit 76a3e5cfcf
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -89,11 +89,11 @@ const ModelItem: React.FC<ModelItemProps> = ({
: null,
config: {
type: form.getFieldValue(['config', 'type']) || '',
...customConfig,
openaiCustomUrl:
form.getFieldValue(['config', 'openaiCustomUrl']) ||
customConfig?.openaiCustomUrl ||
null,
...customConfig
form.getFieldValue(['config', 'openaiCustomUrl']) ||
null
}
}
});
@@ -82,9 +82,9 @@ const SupportedModels = () => {
: null,
config: {
type: form.getFieldValue(['config', 'type']) || '',
...customConfig,
openaiCustomUrl:
openaiCustomUrl || customConfig?.openaiCustomUrl || null,
...customConfig
customConfig?.openaiCustomUrl || openaiCustomUrl || null
}
}
});