mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-11 20:18:30 +08:00
fix: 降低 API Key 最小长度限制至 3 个字符
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user