in src/smolagents/vision_web_browser.py [0:0]
def parse_arguments():
parser = argparse.ArgumentParser(description="Run a web browser automation script with a specified model.")
parser.add_argument(
"prompt",
type=str,
nargs="?", # Makes it optional
default=search_request,
help="The prompt to run with the agent",
)
parser.add_argument(
"--model-type",
type=str,
default="LiteLLMModel",
help="The model type to use (e.g., OpenAIServerModel, LiteLLMModel, TransformersModel, InferenceClientModel)",
)
parser.add_argument(
"--model-id",
type=str,
default="gpt-4o",
help="The model ID to use for the specified model type",
)
parser.add_argument(
"--provider",
type=str,
help="The inference provider to use for the model",
)
parser.add_argument(
"--api-base",
type=str,
help="The API base to use for the model",
)
parser.add_argument(
"--api-key",
type=str,
help="The API key to use for the model",
)
return parser.parse_args()