⚡️ improve: webUI improve
This commit is contained in:
parent
1655200376
commit
067668ccae
@ -554,28 +554,34 @@ const EditModal = ({ open, channelId, onCancel, onOk, groupOptions }) => {
|
||||
</Container>
|
||||
)}
|
||||
|
||||
<FormControl fullWidth error={Boolean(touched.model_mapping && errors.model_mapping)} sx={{ ...theme.typography.otherInput }}>
|
||||
{/* <InputLabel htmlFor="channel-model_mapping-label">{inputLabel.model_mapping}</InputLabel> */}
|
||||
<TextField
|
||||
multiline
|
||||
id="channel-model_mapping-label"
|
||||
label={inputLabel.model_mapping}
|
||||
value={values.model_mapping}
|
||||
name="model_mapping"
|
||||
onBlur={handleBlur}
|
||||
onChange={handleChange}
|
||||
aria-describedby="helper-text-channel-model_mapping-label"
|
||||
minRows={5}
|
||||
placeholder={inputPrompt.model_mapping}
|
||||
/>
|
||||
{touched.model_mapping && errors.model_mapping ? (
|
||||
<FormHelperText error id="helper-tex-channel-model_mapping-label">
|
||||
{errors.model_mapping}
|
||||
</FormHelperText>
|
||||
) : (
|
||||
<FormHelperText id="helper-tex-channel-model_mapping-label"> {inputPrompt.model_mapping} </FormHelperText>
|
||||
)}
|
||||
</FormControl>
|
||||
{inputPrompt.model_mapping && (
|
||||
<FormControl
|
||||
fullWidth
|
||||
error={Boolean(touched.model_mapping && errors.model_mapping)}
|
||||
sx={{ ...theme.typography.otherInput }}
|
||||
>
|
||||
{/* <InputLabel htmlFor="channel-model_mapping-label">{inputLabel.model_mapping}</InputLabel> */}
|
||||
<TextField
|
||||
multiline
|
||||
id="channel-model_mapping-label"
|
||||
label={inputLabel.model_mapping}
|
||||
value={values.model_mapping}
|
||||
name="model_mapping"
|
||||
onBlur={handleBlur}
|
||||
onChange={handleChange}
|
||||
aria-describedby="helper-text-channel-model_mapping-label"
|
||||
minRows={5}
|
||||
placeholder={inputPrompt.model_mapping}
|
||||
/>
|
||||
{touched.model_mapping && errors.model_mapping ? (
|
||||
<FormHelperText error id="helper-tex-channel-model_mapping-label">
|
||||
{errors.model_mapping}
|
||||
</FormHelperText>
|
||||
) : (
|
||||
<FormHelperText id="helper-tex-channel-model_mapping-label"> {inputPrompt.model_mapping} </FormHelperText>
|
||||
)}
|
||||
</FormControl>
|
||||
)}
|
||||
<FormControl fullWidth error={Boolean(touched.proxy && errors.proxy)} sx={{ ...theme.typography.otherInput }}>
|
||||
<InputLabel htmlFor="channel-proxy-label">{inputLabel.proxy}</InputLabel>
|
||||
<OutlinedInput
|
||||
|
@ -258,7 +258,8 @@ const typeConfig = {
|
||||
prompt: {
|
||||
key: '密钥填写midjourney-proxy的密钥,如果没有设置密钥,可以随便填',
|
||||
base_url: '地址填写midjourney-proxy部署的地址',
|
||||
test_model: ''
|
||||
test_model: '',
|
||||
model_mapping: ''
|
||||
},
|
||||
modelGroup: 'Midjourney'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user