summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com>2023-11-04 22:25:40 +0100
committerGitHub <noreply@github.com>2023-11-04 22:25:40 +0100
commit93a6d4499b86a64be577e54381951d782f45b04c (patch)
tree7c3ff7b48aaa44ef0f2113a03b6aea8137b1300f
parentUpdate cli.py (diff)
downloadgpt4free-93a6d4499b86a64be577e54381951d782f45b04c.tar
gpt4free-93a6d4499b86a64be577e54381951d782f45b04c.tar.gz
gpt4free-93a6d4499b86a64be577e54381951d782f45b04c.tar.bz2
gpt4free-93a6d4499b86a64be577e54381951d782f45b04c.tar.lz
gpt4free-93a6d4499b86a64be577e54381951d782f45b04c.tar.xz
gpt4free-93a6d4499b86a64be577e54381951d782f45b04c.tar.zst
gpt4free-93a6d4499b86a64be577e54381951d782f45b04c.zip
-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)