Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
clean a little
mertunsall9025e1ccba9f
diff --git a/eval/service.py b/eval/service.pyindex e6eb232d6..6ed5ae1c0 100644--- a/eval/service.py+++ b/eval/service.py@@ -480,10 +480,12 @@ def get_llm(model_name: str):)api_key = None+ temperature = 0.1+ max_tokens = 8192api_key_secret = SecretStr(api_key) if api_key else Nonematch provider:case 'openai':- kwargs = {'model': config['model_name'], 'temperature': 0.3, 'max_tokens': 8192}+ kwargs = {'model': config['model_name'], 'temperature': temperature, 'max_tokens': max_tokens}# Must set temperatue=1 if model is gpt-o4-miniif model_name == 'gpt-o4-mini':kwargs['temperature'] = 1@@ -491,17 +493,28 @@ def get_llm(model_name: str):kwargs['api_key'] = api_key_secretreturn ChatOpenAI(**kwargs)case 'anthropic':- kwargs = {'model_name': config['model_name'], 'temperature': 0.3, 'timeout': 100, 'stop': None, 'max_tokens': 8192}+ kwargs = {+ 'model_name': config['model_name'],+ 'temperature': temperature,+ 'timeout': 100,+ 'stop': None,+ 'max_tokens': max_tokens,+ }if api_key_secret:kwargs['api_key'] = api_key_secretreturn ChatAnthropic(**kwargs)case 'google':- kwargs = {'model': config['model_name'], 'temperature': 0.3, 'max_tokens': 8192}+ kwargs = {'model': config['model_name'], 'temperature': temperature, 'max_tokens': max_tokens}if api_key_secret:kwargs['api_key'] = api_key_secretreturn ChatGoogleGenerativeAI(**kwargs)case 'openai_compatible':- kwargs = {'model': config['model_name'], 'base_url': config['base_url'], 'temperature': 0.3, 'max_tokens': 8192}+ kwargs = {+ 'model': config['model_name'],+ 'base_url': config['base_url'],+ 'temperature': temperature,+ 'max_tokens': max_tokens,+ }if api_key_secret:kwargs['api_key'] = api_key_secretelif config.get('base_url'):