Skip to content

Commit 32f6583

Browse files
authored
Merge pull request #590 from knowlet/patch-1
Fix `planner_llm_model_name` Not Loaded Correctly When Using "Load Config"
2 parents 82dee36 + 2a03d7f commit 32f6583

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/webui/webui_manager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import Optional, Dict, List
88
import uuid
99
import asyncio
10+
import time
1011

1112
from gradio.components import Component
1213
from browser_use.browser.browser import Browser
@@ -108,6 +109,9 @@ def load_config(self, config_path: str):
108109
update_components[comp] = comp.__class__(value=comp_val, type="messages")
109110
else:
110111
update_components[comp] = comp.__class__(value=comp_val)
112+
if comp_id == "agent_settings.planner_llm_provider":
113+
yield update_components # yield provider, let callback run
114+
time.sleep(0.1) # wait for Gradio UI callback
111115

112116
config_status = self.id_to_component["load_save_config.config_status"]
113117
update_components.update(

0 commit comments

Comments
 (0)