summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com>2023-11-04 22:25:21 +0100
committerGitHub <noreply@github.com>2023-11-04 22:25:21 +0100
commitdf7ba2c5eb0c62e427e8ab884d1883999812c25b (patch)
tree909e10401a1b2b75fc2a32fefb0b84820ab317af
parentUpdate run.py (diff)
downloadgpt4free-df7ba2c5eb0c62e427e8ab884d1883999812c25b.tar
gpt4free-df7ba2c5eb0c62e427e8ab884d1883999812c25b.tar.gz
gpt4free-df7ba2c5eb0c62e427e8ab884d1883999812c25b.tar.bz2
gpt4free-df7ba2c5eb0c62e427e8ab884d1883999812c25b.tar.lz
gpt4free-df7ba2c5eb0c62e427e8ab884d1883999812c25b.tar.xz
gpt4free-df7ba2c5eb0c62e427e8ab884d1883999812c25b.tar.zst
gpt4free-df7ba2c5eb0c62e427e8ab884d1883999812c25b.zip
Diffstat (limited to '')
-rw-r--r--g4f/cli.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/g4f/cli.py b/g4f/cli.py
index 2938a335..a8fcba47 100644
--- a/g4f/cli.py
+++ b/g4f/cli.py
@@ -17,7 +17,6 @@ def main():
api_parser=subparsers.add_parser("api")
api_parser.add_argument("--bind", default="127.0.0.1:1337", help="The bind string.")
api_parser.add_argument("--debug", type=bool, default=False, help="Enable verbose logging")
- api_parser.add_argument("--num-threads", type=int, default=8, help="The number of threads.")
api_parser.add_argument("--ignored-providers", nargs="+", choices=[provider.name for provider in IgnoredProviders],
default=[], help="List of providers to ignore when processing request.")
subparsers.add_parser("gui", parents=[gui_parser()], add_help=False)
@@ -25,7 +24,7 @@ def main():
args = parser.parse_args()
if args.mode == "api":
controller=Api(g4f, debug=args.debug, list_ignored_providers=args.ignored_providers)
- controller.run(args.bind, args.num_threads)
+ controller.run(args.bind)
elif args.mode == "gui":
run_gui_args(args)
else: