Skip to content

Commit 442ef82

Browse files
authored
Merge pull request #26 from google/ericpts/model_flag
Make the model configurable via flag.
2 parents f1d5822 + ff4df55 commit 442ef82

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

agent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ def __init__(
3838
self,
3939
browser_computer: Computer,
4040
query: str,
41-
model_name: Literal[
42-
"computer-use-exp-6-11"
43-
] = "computer-use-exp-6-11",
41+
model_name: str
4442
):
4543
self._browser_computer = browser_computer
4644
self._query = query

main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ def main() -> int:
5959
default=False,
6060
help="If possible, highlight the location of the mouse.",
6161
)
62+
parser.add_argument(
63+
"--model",
64+
default='computer-use-exp-6-11',
65+
help="Set which main model to use.",
66+
)
6267
args = parser.parse_args()
6368

6469
if args.env == "cloud-run":
@@ -83,6 +88,7 @@ def main() -> int:
8388
agent = BrowserAgent(
8489
browser_computer=browser_computer,
8590
query=args.query,
91+
model_name=args.model,
8692
)
8793
agent.agent_loop()
8894
return 0

0 commit comments

Comments
 (0)