Skip to content

Commit 857e220

Browse files
committed
fixed some bugs
1 parent 1d3f37d commit 857e220

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/run_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def main():
2222
logger.info(f"Load config: {config}")
2323

2424
# Registed models
25-
model_manager.init_models(use_local_proxy=True)
25+
model_manager.init_models(use_local_proxy=False)
2626
logger.info("Registed models: %s", ", ".join(model_manager.registed_models.keys()))
2727

2828
# Create agent

src/config/cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DeepResearcherToolConfig(BaseModel):
2828
max_follow_ups: int = Field(default=3, description="Maximum number of follow-up questions to ask")
2929

3030
class BrowserToolConfig(BaseModel):
31-
model_id: str = Field(default="langchain-gpt-4.1", description="Model ID for the LLM to use")
31+
model_id: str = Field(default="gpt-4.1", description="Model ID for the LLM to use")
3232
headless: bool = Field(False, description="Whether to run browser in headless mode")
3333
disable_security: bool = Field(True, description="Disable browser security features")
3434
extra_chromium_args: List[str] = Field(default_factory=list, description="Extra arguments to pass to the browser")

src/tools/auto_browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ async def _browser_task(self, task):
7070

7171
assert model_id in ['gpt-4.1'], f"Model should be in [gpt-4.1, ], but got {model_id}. Please check your config file."
7272

73-
if "lanchain" not in model_id:
74-
model_id = f"lanchain-{model_id}"
73+
if "langchain" not in model_id:
74+
model_id = f"langchain-{model_id}"
7575

7676
model = model_manager.registed_models[model_id]
7777

0 commit comments

Comments
 (0)