From 93a6d4499b86a64be577e54381951d782f45b04c Mon Sep 17 00:00:00 2001 From: ThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com> Date: Sat, 4 Nov 2023 18:25:40 -0300 Subject: Update cli.py --- g4f/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g4f/cli.py b/g4f/cli.py index a8fcba47..20131e5d 100644 --- a/g4f/cli.py +++ b/g4f/cli.py @@ -23,7 +23,7 @@ def main(): args = parser.parse_args() if args.mode == "api": - controller=Api(g4f, debug=args.debug, list_ignored_providers=args.ignored_providers) + controller=Api(engine=g4f, debug=args.debug, list_ignored_providers=args.ignored_providers) controller.run(args.bind) elif args.mode == "gui": run_gui_args(args) -- cgit v1.2.3