key中用的是serpapi,但运行researcher时报错信息显示用的是ddg是什么问题导致的?
search: api_type: 'serpapi' # serpapi/google/serper/ddg api_key: ''
cse_id: 'YOUR_CSE_ID' # only for google
params: engine: google # google/bing/yahoo/baidu/yandex, check https://serpapi.com/bing-search-api for more details google_domain: 'google.com' gl: us hl: en
2025-02-18 15:28:19.229 | INFO | metagpt.const:get_metagpt_package_root:21 - Package root set to D:\Code\python\pycharm\MetaGPT 2025-02-18 15:28:26.195 | INFO | main:_act:44 - David(Researcher): to do CollectLinks(CollectLinks) ["2025 Spring Fashion Trends", "Women's Fashion"] 2025-02-18 15:28:33.048 | INFO | metagpt.utils.cost_manager:update_cost:57 - Total running cost: $0.001 | Max budget: $10.000 | Current cost: $0.001, prompt_tokens: 74, completion_tokens: 16 2025-02-18 15:28:43.059 | ERROR | metagpt.tools.search_engine:run:142 - fail to search 2025 Spring Fashion Trends for _get_url() https://duckduckgo.com Timeout: Failed to perform, curl: (28) Connection timed out after 10006 milliseconds. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.
默认值是ddg,看着像配置没正确解析,可以把config的值打印出来看下
确实没正常解析,不知道什么原因,只能手动把默认值改了
This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.
This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.