fix: custom config overwrite input value
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user