Skip to content

Commit 6eab0bb

Browse files
committed
fix some bugs
1 parent c6a9973 commit 6eab0bb

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

configs/config_example.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ time_limit_seconds = 60
2929
max_follow_ups = 3
3030

3131
[browser_tool]
32-
model_id = "langchain-gpt-4.1"
32+
model_id = "gpt-4.1"
3333
headless = false
3434
disable_security = true
3535
extra_chromium_args = []

configs/config_gaia.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ time_limit_seconds = 60
2929
max_follow_ups = 3
3030

3131
[browser_tool]
32-
model_id = "langchain-gpt-4.1"
32+
model_id = "gpt-4.1"
3333
headless = false
3434
disable_security = true
3535
extra_chromium_args = []

configs/config_hle.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ time_limit_seconds = 60
2929
max_follow_ups = 3
3030

3131
[browser_tool]
32-
model_id = "langchain-gpt-4.1"
32+
model_id = "gpt-4.1"
3333
headless = false
3434
disable_security = true
3535
extra_chromium_args = []

src/tools/auto_browser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ async def _browser_task(self, task):
6767
controller = Controller(http_save_path=self.http_save_path)
6868

6969
model_id = self.browser_tool_config.model_id
70+
71+
assert model_id in ['gpt-4.1'], f"Model should be in [gpt-4.1, ], but got {model_id}. Please check your config file."
72+
73+
if "lanchain" not in model_id:
74+
model_id = f"lanchain-{model_id}"
75+
7076
model = model_manager.registed_models[model_id]
7177

7278
browser_agent = Agent(

0 commit comments

Comments
 (0)