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

XFEstudio/gpt4free

Update cli.py

4f85d022
Hoàng Đức Mạnh <hoangducmanh03072004@gmail.com>
提交于

代码差异

1 个文件 +7 -1
Modified g4f/cli.py +7 -1
@@ -29,6 +29,10 @@ def get_api_parser():
29 29 default=[], help="List of browsers to access or retrieve cookies from. (incompatible with --reload and --workers)")
30 30 api_parser.add_argument("--reload", action="store_true", help="Enable reloading.")
31 31 api_parser.add_argument("--demo", action="store_true", help="Enable demo mode.")
32
33 api_parser.add_argument("--ssl-keyfile", type=str, default=None, help="Path to SSL key file for HTTPS.")
34 api_parser.add_argument("--ssl-certfile", type=str, default=None, help="Path to SSL certificate file for HTTPS.")
35
32 36 return api_parser
33 37
34 38 def main():
@@ -68,7 +72,9 @@ def run_api_args(args):
68 72 debug=args.debug,
69 73 workers=args.workers,
70 74 use_colors=not args.disable_colors,
71 reload=args.reload
75 reload=args.reload,
76 ssl_keyfile=args.ssl_keyfile,
77 ssl_certfile=args.ssl_certfile
72 78 )
73 79
74 80 if __name__ == "__main__":