browser-use-mcp-server icon indicating copy to clipboard operation
browser-use-mcp-server copied to clipboard

Add Support for Claude & Gemini APIs Alongside OpenAI

Open michiosw opened this issue 1 year ago • 4 comments

Currently, the implementation assumes the use of an OpenAI API key. However, for users who prefer alternative models like Claude or Gemini, it's unclear how this would be handled. Supporting multiple LLM providers would enhance flexibility and allow users to choose the best model for their needs.

michiosw avatar Mar 12 '25 14:03 michiosw

server.py

llm = ChatOpenAI( # base_url='https://api.deepseek.com/v1', # model = 'deepseek-chat', # api_key = os.getenv('DEEPSEEK_API_KEY') base_url='https://dashscope.aliyuncs.com/compatible-mode/v1', model='qwen-max', api_key=os.getenv('OPENAI_API_KEY') )

zhangshaorui avatar Apr 30 '25 06:04 zhangshaorui

server.py

llm = ChatOpenAI( # base_url='https://api.deepseek.com/v1', # model = 'deepseek-chat', # api_key = os.getenv('DEEPSEEK_API_KEY') base_url='https://dashscope.aliyuncs.com/compatible-mode/v1', model='qwen-max', api_key=os.getenv('OPENAI_API_KEY') )

thx,rebuild the docker image, it worked

allanpk716 avatar May 05 '25 02:05 allanpk716

Hey @zhangshaorui , thank you for the support! We would greatly appreciate it if you could open a PR. From what I’m seeing, it’s using a proxy AI API provider that follows the OpenAI style — does this mean you could connect any provider? Best, Michel

michiosw avatar May 05 '25 18:05 michiosw

Why does the MCP server need an LLM API at all? Isn't the MCP supposed to be just a tool the LLM uses?

NightMachinery avatar Aug 13 '25 23:08 NightMachinery