diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-28 22:47:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-28 22:47:42 +0200 |
commit | f47b7a2a9b10984679a10c437ebd0d9457e86789 (patch) | |
tree | 5f6fc32011c94e3a79eadd000cc93090175b9984 /g4f/cli.py | |
parent | Merge pull request #1907 from hlohaus/arka (diff) | |
parent | clean code (diff) | |
download | gpt4free-f47b7a2a9b10984679a10c437ebd0d9457e86789.tar gpt4free-f47b7a2a9b10984679a10c437ebd0d9457e86789.tar.gz gpt4free-f47b7a2a9b10984679a10c437ebd0d9457e86789.tar.bz2 gpt4free-f47b7a2a9b10984679a10c437ebd0d9457e86789.tar.lz gpt4free-f47b7a2a9b10984679a10c437ebd0d9457e86789.tar.xz gpt4free-f47b7a2a9b10984679a10c437ebd0d9457e86789.tar.zst gpt4free-f47b7a2a9b10984679a10c437ebd0d9457e86789.zip |
Diffstat (limited to 'g4f/cli.py')
-rw-r--r-- | g4f/cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -16,6 +16,7 @@ def main(): api_parser.add_argument("--workers", type=int, default=None, help="Number of workers.") api_parser.add_argument("--disable-colors", action="store_true", help="Don't use colors.") api_parser.add_argument("--ignore-cookie-files", action="store_true", help="Don't read .har and cookie files.") + api_parser.add_argument("--g4f-api-key", type=str, default=None, help="Sets an authentication key for your API.") api_parser.add_argument("--ignored-providers", nargs="+", choices=[provider for provider in Provider.__map__], default=[], help="List of providers to ignore when processing request.") subparsers.add_parser("gui", parents=[gui_parser()], add_help=False) @@ -42,6 +43,7 @@ def run_api_args(args): bind=args.bind, debug=args.debug, workers=args.workers, + g4f_api_key=args.g4f_api_key, use_colors=not args.disable_colors ) |