fix: 降低 API Key 最小长度限制至 3 个字符

This commit is contained in:
fawney19
2026-01-08 01:53:16 +08:00
parent 238788e0e9
commit d9e6346911
3 changed files with 6 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ const fieldNameMap: Record<string, string> = {
*/
const errorTypeMap: Record<string, (error: ValidationError) => string> = {
'string_too_short': (error) => {
const minLength = error.ctx?.min_length || 10
const minLength = error.ctx?.min_length || 3
return `长度不能少于 ${minLength} 个字符`
},
'string_too_long': (error) => {