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

key中用的是serpapi,但运行researcher时报错信息显示用的是ddg是什么问题导致的? #1698

Open
1729256800 opened this issue Feb 18, 2025 · 2 comments

Comments

@1729256800
Copy link

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.

@seehi
Copy link
Contributor

seehi commented Feb 19, 2025

默认值是ddg,看着像配置没正确解析,可以把config的值打印出来看下

@1729256800
Copy link
Author

确实没正常解析,不知道什么原因,只能手动把默认值改了

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

2 participants