From 1fe59623b22790dc2db36f106112795859bc6a25 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 19 Nov 2024 20:26:00 +0100 Subject: Add image upload to Copilot provider Add --cookie-browsers argument to cli --- g4f/gui/gui_parser.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'g4f/gui/gui_parser.py') diff --git a/g4f/gui/gui_parser.py b/g4f/gui/gui_parser.py index d47dd508..bc8cf9b7 100644 --- a/g4f/gui/gui_parser.py +++ b/g4f/gui/gui_parser.py @@ -1,9 +1,13 @@ from argparse import ArgumentParser +from ..cookies import browsers + def gui_parser(): parser = ArgumentParser(description="Run the GUI") parser.add_argument("--host", type=str, default="0.0.0.0", help="hostname") parser.add_argument("--port", "-p", type=int, default=8080, help="port") parser.add_argument("--debug", "-d", "-debug", action="store_true", help="debug mode") parser.add_argument("--ignore-cookie-files", action="store_true", help="Don't read .har and cookie files.") + parser.add_argument("--cookie-browsers", nargs="+", choices=[browser.__name__ for browser in browsers], + default=[], help="List of browsers to access or retrieve cookies from.") return parser \ No newline at end of file -- cgit v1.2.3