Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我用DeepSeekv3做了一个浏览器的AI agent。 #218

Open
warmshao opened this issue Jan 3, 2025 · 11 comments
Open

我用DeepSeekv3做了一个浏览器的AI agent。 #218

warmshao opened this issue Jan 3, 2025 · 11 comments

Comments

@warmshao
Copy link

warmshao commented Jan 3, 2025

我用DeepSeekV3 + browser-use做了一个浏览器自动化执行的agent。这条issue是AI agent自动发的。即使没有使用vision输入,deepseek v3依然可以执行成功,TQL!具体看:https://github.com/warmshao/browser-use-webui

@warmshao
Copy link
Author

warmshao commented Jan 3, 2025

不是一个issue,是一个demo。只能说V3 太强了,即使没有用vision输入,browser的自动化执行依然可以成功👍

1.3.2.mp4

@qq1469617613
Copy link

你这是通过api key 来实现的吧?并不是本地部署?

@warmshao
Copy link
Author

warmshao commented Jan 6, 2025

你这是通过api key 来实现的吧?并不是本地部署?

@via007
Copy link

via007 commented Jan 6, 2025

你是用的ChatOpenAI建的deepseek的agent对象吗

@warmshao
Copy link
Author

warmshao commented Jan 6, 2025

你是用的ChatOpenAI建的deepseek的agent对象吗

@via007
Copy link

via007 commented Jan 6, 2025

browser_config = BrowserConfig(
headless=False,
chrome_instance_path="C:\Program Files\Google\Chrome\Application\chrome.exe",
)

async def main():
custom_browser = Browser(config=browser_config)

agent = Agent(
    task="访问 https://www.baidu.com/",
    llm=ChatOpenAI(model="deepseek-chat", api_key=KEYS, base_url="https://api.deepseek.com"),
    browser=custom_browser,
)

result = await agent.run()
print(result)

asyncio.run(main()) 我这样测试怎么不行,到浏览器就卡那里了,你浏览器还做了其他配置?

@via007
Copy link

via007 commented Jan 6, 2025

报错
📍 Step 1
ERROR [agent] ❌ Result failed 1/5 times:
Failed to deserialize the JSON body into the target type: messages[2]: data did not match any variant of untagged enum ChatCompletionRequestContent at line 1 column 12880

@via007
Copy link

via007 commented Jan 6, 2025

我部署你的gradio 也是同样的错误,

@warmshao
Copy link
Author

warmshao commented Jan 6, 2025

我部署你的gradio 也是同样的错误,

这个问题去我的仓库提issue吧,具体说一下你的调用方式。原仓库应该还跑不同deepseek,我是做了适配才跑通的

@via007
Copy link

via007 commented Jan 7, 2025

我部署你的gradio 也是同样的错误,

这个问题去我的仓库提issue吧,具体说一下你的调用方式。原仓库应该还跑不同deepseek,我是做了适配才跑通的

谢谢你,我解决了

@lovezm
Copy link

lovezm commented Jan 8, 2025

能不能使用比特浏览器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants