You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the WebUI "Load Config" feature to load a previously saved configuration, the planner_llm_model_name field (Planner LLM Model Name) in the agent_settings tab does not correctly display the saved value. Even though the configuration file contains the correct provider and model name, the dropdown in the UI remains blank or shows a default value, requiring users to manually reselect the model.
Root Cause
The planner_llm_model_name field is a dropdown whose available choices depend dynamically on the value of planner_llm_provider.
During the load_config process, the code simply sets the value for each component without ensuring that the provider is set before the model name.
If the provider is not set first, or if the model name value is not present in the current choices, the Gradio dropdown component cannot display the value correctly.
In contrast, the llm_model_name dropdown works as expected because it always has a default provider and choices initialized, so its value is always valid.
Screenshot
The text was updated successfully, but these errors were encountered:
knowlet
added a commit
to knowlet/web-ui
that referenced
this issue
May 14, 2025
Yields the provider when the agent settings change in
order to run the callback. Also adds a short sleep to wait for
Gradio UI callback.
Fix Planner LLM Model Name not loaded correctly when Load Config browser-use#589
knowlet
added a commit
to knowlet/web-ui
that referenced
this issue
May 18, 2025
Yields the provider when the agent settings change in
order to run the callback. Also adds a short sleep to wait for
Gradio UI callback.
Fix Planner LLM Model Name not loaded correctly when Load Config browser-use#589
Signed-off-by: knowlet <[email protected]>
Problem Description
When using the WebUI "Load Config" feature to load a previously saved configuration, the planner_llm_model_name field (Planner LLM Model Name) in the agent_settings tab does not correctly display the saved value. Even though the configuration file contains the correct provider and model name, the dropdown in the UI remains blank or shows a default value, requiring users to manually reselect the model.
Root Cause
The planner_llm_model_name field is a dropdown whose available choices depend dynamically on the value of
planner_llm_provider
.During the load_config process, the code simply sets the value for each component without ensuring that the provider is set before the model name.
If the provider is not set first, or if the model name value is not present in the current choices, the Gradio dropdown component cannot display the value correctly.
In contrast, the
llm_model_name
dropdown works as expected because it always has a default provider and choices initialized, so its value is always valid.Screenshot
The text was updated successfully, but these errors were encountered: