feat: add parameter format and common parameters to backend configuration
This commit is contained in:
@@ -119,6 +119,10 @@ const AddModal: React.FC<AddModalProps> = (props) => {
|
||||
|
||||
onSubmit({
|
||||
...values,
|
||||
parameter_format:
|
||||
values.parameter_format === 'auto' || !values.parameter_format
|
||||
? null
|
||||
: values.parameter_format,
|
||||
default_version: defaultVersion?.version_no || '',
|
||||
// @ts-ignore
|
||||
version_configs: versionConfigs
|
||||
@@ -155,6 +159,7 @@ const AddModal: React.FC<AddModalProps> = (props) => {
|
||||
return {
|
||||
...values,
|
||||
backend_name: values.backend_name.replace(/-custom$/, ''),
|
||||
parameter_format: values.parameter_format ?? 'auto',
|
||||
version_configs: versionConfigs,
|
||||
built_in_version_configs: builtInVersions
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user