Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Fix provider branch ordering in llm models

MagellaX93a2bddb9c9d
diff --git a/browser_use/llm/models.py b/browser_use/llm/models.py
index a983c9ebf..76e8d8a18 100644
--- a/browser_use/llm/models.py
+++ b/browser_use/llm/models.py
@@ -191,9 +191,6 @@ def get_llm_by_name(model_name: str):
resolved_model = mistral_map.get(model_part, model.replace('_', '-'))
return ChatMistral(model=resolved_model, api_key=api_key, base_url=base_url)
- else:
- available_providers = ['openai', 'azure', 'google', 'mistral']
-
# OCI Models
elif provider == 'oci':
# OCI requires more complex configuration that can't be easily inferred from env vars