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

XFEstudio/gpt4free

Log invalid requests

b400ceee
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +0 -1
Modified g4f/api/__init__.py +0 -1
@@ -259,7 +259,6 @@ class Api:
259 259 user = data.get("user")
260 260 except:
261 261 debug.log(f"Invalid G4F API key for user: '{user}'")
262 debug.log(await request.json())
263 262 return ErrorResponse.from_message(f"Invalid G4F API key", HTTP_401_UNAUTHORIZED)
264 263 expires = int(expires) - int(time.time())
265 264 hours, remainder = divmod(expires, 3600)