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

XFEstudio/gpt4free

fix: resolve TypeError when using --cookie-browsers CLI argument

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>

5a3f54d7
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/cli/__init__.py +1 -1
@@ -221,7 +221,7 @@ def run_api_args(args):
221 221
222 222 # Custom cookie browsers
223 223 if args.cookie_browsers:
224 cookies.BROWSERS = [cookies[b] for b in args.cookie_browsers]
224 cookies.BROWSERS = [b for b in cookies.BROWSERS if b.__name__ in args.cookie_browsers]
225 225
226 226 # Allow overriding the cookies directory from CLI
227 227 if getattr(args, "cookies_dir", None):