fix: model names must not contain spaces at both ends

This commit is contained in:
QuentinHsu 2024-03-05 12:15:56 +08:00
parent 912f46fcd2
commit d160736a49
No known key found for this signature in database
GPG Key ID: 20D465A435D740D0

View File

@ -454,7 +454,7 @@ const EditChannel = (props) => {
placeholder='输入自定义模型名称' placeholder='输入自定义模型名称'
value={customModel} value={customModel}
onChange={(value) => { onChange={(value) => {
setCustomModel(value); setCustomModel(value.trim());
}} }}
/> />
</div> </div>