返回提交历史
Modified
g4f/api/__init__.py
+1
-1
XFEstudio/gpt4free
Update __init__.py
52781f3c
代码差异
1 个文件
+1
-1
@@ -272,7 +272,7 @@ class Api:
272
272
for char in string:
273
273
if char.isupper():
274
274
count += 1
275
if count > 5:
275
if count > 4:
276
276
return ErrorResponse.from_message("Invalid user name", HTTP_401_UNAUTHORIZED)
277
277
path = request.url.path
278
278
if path.startswith("/v1") or path.startswith("/api/") or (AppConfig.demo and path == '/backend-api/v2/upload_cookies'):