fix: custom config overwrite input value
This commit is contained in:
@@ -89,11 +89,11 @@ const ModelItem: React.FC<ModelItemProps> = ({
|
|||||||
: null,
|
: null,
|
||||||
config: {
|
config: {
|
||||||
type: form.getFieldValue(['config', 'type']) || '',
|
type: form.getFieldValue(['config', 'type']) || '',
|
||||||
|
...customConfig,
|
||||||
openaiCustomUrl:
|
openaiCustomUrl:
|
||||||
form.getFieldValue(['config', 'openaiCustomUrl']) ||
|
|
||||||
customConfig?.openaiCustomUrl ||
|
customConfig?.openaiCustomUrl ||
|
||||||
null,
|
form.getFieldValue(['config', 'openaiCustomUrl']) ||
|
||||||
...customConfig
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -82,9 +82,9 @@ const SupportedModels = () => {
|
|||||||
: null,
|
: null,
|
||||||
config: {
|
config: {
|
||||||
type: form.getFieldValue(['config', 'type']) || '',
|
type: form.getFieldValue(['config', 'type']) || '',
|
||||||
|
...customConfig,
|
||||||
openaiCustomUrl:
|
openaiCustomUrl:
|
||||||
openaiCustomUrl || customConfig?.openaiCustomUrl || null,
|
customConfig?.openaiCustomUrl || openaiCustomUrl || null
|
||||||
...customConfig
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user