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:
BioInfo
2025-02-01 20:37:04 -05:00
parent 32df3485c9
commit 150a8b4384
3 changed files with 3 additions and 13 deletions

View File

@@ -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(