fix: deduplicate models before submitting

This commit is contained in:
jialin
2026-02-09 11:51:26 +08:00
parent fba430999d
commit cb13873098
+2 -1
View File
@@ -77,7 +77,8 @@ const ProviderForm: React.FC<ProviderFormProps> = forwardRef((props, ref) => {
config: { config: {
type: values.config.type, type: values.config.type,
...yaml2Json(advanceRef.current?.getYamlValue() || '') ...yaml2Json(advanceRef.current?.getYamlValue() || '')
} },
models: _.uniqBy(values.models, 'name')
}; };
onFinish(data); onFinish(data);
}; };