summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/cli.py2
1 files changed, 1 insertions, 1 deletions
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)