geekan / MetaGPT

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
https://deepwisdom.ai/
MIT License
43.96k stars 5.23k forks source link

无法使用gemini的gemini-pro api #1369

Open harvinyou opened 3 months ago

harvinyou commented 3 months ago

2024-06-28 00:13:50.775 | INFO | metagpt.roles.role:_act:402 - Alice(Product Manager): to do WritePRD(WritePRD) 2024-06-28 00:13:50.775 | INFO | metagpt.actions.write_prd:run:86 - New requirement detected: 给我个好玩的 2024-06-28 00:14:00.723 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 9.947(s), this was the 1st time calling it. exp: object ResponseIterator can't be used in 'await' expression 2024-06-28 00:14:10.285 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 19.509(s), this was the 2nd time calling it. exp: object ResponseIterator can't be used in 'await' expression 2024-06-28 00:14:20.550 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 29.775(s), this was the 3rd time calling it. exp: object ResponseIterator can't be used in 'await' expression 2024-06-28 00:14:32.693 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 41.917(s), this was the 4th time calling it. exp: object ResponseIterator can't be used in 'await' expression 2024-06-28 00:14:43.374 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 52.599(s), this was the 5th time calling it. exp: object ResponseIterator can't be used in 'await' expression

harvinyou commented 3 months ago

解决了,genai.configure(api_key=config.api_key) 需要外网环境