diff --git a/src/agent/custom_prompts.py b/src/agent/custom_prompts.py index 1e1df63..5a8d069 100644 --- a/src/agent/custom_prompts.py +++ b/src/agent/custom_prompts.py @@ -14,7 +14,7 @@ class CustomSystemPrompt(SystemPrompt): """ Returns the important rules for the agent. """ - text = """ + text = r""" 1. RESPONSE FORMAT: You must ALWAYS respond with valid JSON in this exact format: { "current_state": { diff --git a/src/utils/utils.py b/src/utils/utils.py index 73e9066..806c1b2 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -140,7 +140,7 @@ def get_llm_model(provider: str, **kwargs): # Predefined model names for common providers model_names = { "anthropic": ["claude-3-5-sonnet-20240620", "claude-3-opus-20240229"], - "openai": ["gpt-4o", "gpt-4", "gpt-3.5-turbo"], + "openai": ["gpt-4o", "gpt-4", "gpt-3.5-turbo", "o3-mini"], "deepseek": ["deepseek-chat", "deepseek-reasoner"], "gemini": ["gemini-2.0-flash-exp", "gemini-2.0-flash-thinking-exp", "gemini-1.5-flash-latest", "gemini-1.5-flash-8b-latest", "gemini-2.0-flash-thinking-exp-1219" ], "ollama": ["qwen2.5:7b", "llama2:7b", "deepseek-r1:14b", "deepseek-r1:32b"], diff --git a/webui.py b/webui.py index f760aab..fa8b0b4 100644 --- a/webui.py +++ b/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(