Skip to content

Commit

Permalink
🐛 fix: unable to submit creating azure speech
Browse files Browse the repository at this point in the history
  • Loading branch information
MartialBE committed Apr 23, 2024
1 parent 628df97 commit 9c8943e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/views/Channel/component/EditModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const validationSchema = Yup.object().shape({
models: Yup.array().min(1, '模型 不能为空'),
groups: Yup.array().min(1, '用户组 不能为空'),
base_url: Yup.string().when('type', {
is: (value) => [3, 24, 8].includes(value),
is: (value) => [3, 8].includes(value),
then: Yup.string().required('渠道API地址 不能为空'), // base_url 是必需的
otherwise: Yup.string() // 在其他情况下,base_url 可以是任意字符串
}),
Expand Down

0 comments on commit 9c8943e

Please sign in to comment.