ma-pony / langchain-wechat

基于langchain + fastapi + itchat搭建的微信聊天机器人,灵感来自于chatgpt-on-wechat
MIT License
44 stars 1 forks source link

duckduckgo search not working #5

Open autominds opened 3 months ago

autominds commented 3 months ago

duckduckgo search not working.

You: Hello

Entering new AgentExecutor chain... Hello! How can I assist you today?

Finished chain. 2024-04-03 02:26:18.972 | INFO | Processed message successfully. AI: Hello! How can I assist you today? You: what's date today?

Entering new AgentExecutor chain...

Invoking: CurrentDate with YYYY-MM-DD

2024-04-03Today is April 3, 2024. How can I assist you further?

Finished chain. 2024-04-03 02:26:57.835 | INFO | Processed message successfully. AI: Today is April 3, 2024. How can I assist you further? You: search OpenAI News.

Entering new AgentExecutor chain...

Invoking: Search with OpenAI News

I'm sorry, but it seems there was an issue retrieving the latest news about OpenAI. Is there anything specific you're interested in regarding OpenAI, or would you like me to try searching again?

Finished chain. 2024-04-03 02:27:16.612 | INFO | Processed message successfully. AI: I'm sorry, but it seems there was an issue retrieving the latest news about OpenAI. Is there anything specific you're interested in regarding OpenAI, or would you like me to try searching again?

ma-pony commented 3 months ago

Interesting bug, I'm not sure what happened at the moment, but after updating langchain to the latest version, I found that the bug was fixed, and I'd welcome some feedback after you've followed my steps!

  1. update code git pull
  2. upgrade langchain poetry install or pip install -r requirements.txt