Skip to content

Commit

Permalink
BUG: Model description does not support Chinese from UI registering (x…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengjieLi28 authored and Bojun-Feng committed Dec 27, 2023
1 parent 58e3314 commit fd7c704
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xinference/web/ui/src/scenes/register_model/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ const RegisterModel = () => {
const errorModelName = !/^[A-Za-z0-9][A-Za-z0-9_-]*$/.test(
formData.model_name
)
const errorModelDescription =
!/^[A-Za-z0-9\s!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]{0,500}$/.test(
formData.model_description
)
const errorModelDescription = formData.model_description.length < 0
const errorContextLength = formData.context_length === 0
const errorLanguage =
formData.model_lang === undefined || formData.model_lang.length === 0
Expand Down

0 comments on commit fd7c704

Please sign in to comment.