XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update __init__.py

52781f3c
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/api/__init__.py +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'):