Open thurft opened 11 months ago
Have you removed the "" also?
SERPAPI_API_KEY, SERPER_API_KEY, and GOOGLE_API_KEY are all reported as unavailable in the log. Please ensure that the key you used is uncommented and that the value is usable.
The example is poorly documented, after browsing the source-code I found the following solution:
The default search-engine used in the Searcher
is SERPAPI.
If you want to use direct google, you will have to modify the example to to the following:
...
from metagpt.tools import SearchEngineType
...
async def main():
await Searcher(engine=SearchEngineType.DIRECT_GOOGLE).run(....
That worked for me.
I am running the example search_google.py and i get the following error. But I put a set & uncomment from the config file.
GOOGLE_API_KEY: "xxx"
and take the # away from it so its all uncommented. technically it should work.