mirror of
https://github.com/browser-use/web-ui.git
synced 2026-03-22 11:17:17 +08:00
feat: add OpenAI O3-mini model support and fix theme handling
- Add O3-mini model to OpenAI model options - Remove forced dark theme to allow system/light theme options - Fix JSON template escape sequence in custom prompts
This commit is contained in:
12
webui.py
12
webui.py
@@ -616,18 +616,8 @@ def create_ui(config, theme_name="Ocean"):
|
||||
}
|
||||
"""
|
||||
|
||||
js = """
|
||||
function refresh() {
|
||||
const url = new URL(window.location);
|
||||
if (url.searchParams.get('__theme') !== 'dark') {
|
||||
url.searchParams.set('__theme', 'dark');
|
||||
window.location.href = url.href;
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
with gr.Blocks(
|
||||
title="Browser Use WebUI", theme=theme_map[theme_name], css=css, js=js
|
||||
title="Browser Use WebUI", theme=theme_map[theme_name], css=css
|
||||
) as demo:
|
||||
with gr.Row():
|
||||
gr.Markdown(
|
||||
|
||||
Reference in New Issue
Block a user