diff --git a/src/pages/llmodels/components/deploy-modal.tsx b/src/pages/llmodels/components/deploy-modal.tsx index bd15a63b..6b1523c5 100644 --- a/src/pages/llmodels/components/deploy-modal.tsx +++ b/src/pages/llmodels/components/deploy-modal.tsx @@ -295,7 +295,9 @@ const AddModal: FC = (props) => { manual?: boolean ) => { if (item.name === currentSelectedModel.current.name) { - return manual ? modelName : form.current?.getFieldValue?.('name'); + return manual + ? modelName + : form.current?.getFieldValue?.('name') || modelName; } return modelName; }; @@ -343,8 +345,6 @@ const AddModal: FC = (props) => { categories: getCategory(item) }); - console.log('modelInfo:', modelInfo); - let warningStatus: MessageStatus = { show: true, title: '', diff --git a/src/pages/playground/audio/form.tsx b/src/pages/playground/audio/form.tsx index 32e82c7e..244fc113 100644 --- a/src/pages/playground/audio/form.tsx +++ b/src/pages/playground/audio/form.tsx @@ -23,7 +23,7 @@ export const RefAudioFormItem: React.FC = () => { const { meta, onValuesChange } = useFormContext(); const form = Form.useFormInstance(); const intl = useIntl(); - const [filleName, setFileName] = React.useState(''); + const [fileName, setFileName] = React.useState(''); // handle upload audio file, transfer to a base64 url const handleUploadChange = async (data: { file: any; fileList: any }) => { @@ -55,14 +55,14 @@ export const RefAudioFormItem: React.FC = () => { return ( ({ value: filleName ? filleName : value })} + getValueProps={(value) => ({ value: fileName ? fileName : value })} > - {filleName ? ( + {fileName ? ( diff --git a/src/pages/playground/audio/params-config.ts b/src/pages/playground/audio/params-config.ts index f011a772..b242e336 100644 --- a/src/pages/playground/audio/params-config.ts +++ b/src/pages/playground/audio/params-config.ts @@ -45,7 +45,7 @@ export const TTSAdvancedParamsConfig: ParamsSchema[] = [ ] }, { - type: 'Select', + type: 'AutoComplete', name: 'instructions', label: { text: 'playground.params.voiceStyle',