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

XFEstudio/gpt4free

Improve logging

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

代码差异

1 个文件 +1 -1
Modified g4f/gui/server/api.py +1 -1
@@ -242,7 +242,7 @@ class Api:
242 242 yield self._format_json("content", str(chunk))
243 243 except MissingAuthError as e:
244 244 yield self._format_json('auth', type(e).__name__, message=get_error_message(e))
245 except TimeoutError as e:
245 except (TimeoutError, asyncio.exceptions.CancelledError) as e:
246 246 if "user" in kwargs:
247 247 debug.error(e, "User:", kwargs.get("user", "Unknown"))
248 248 yield self._format_json('error', type(e).__name__, message=get_error_message(e))