MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

openai api配置-提示错误,已经在项目文件下配置好config2.yaml

Open hold-zt opened this issue 9 months ago • 2 comments

详细操作中的“在当前工作目录中创建一个名为config的文件夹”, 当前工作目录指的是哪里,有没有详细配置openai api的步骤?

hold-zt avatar Mar 18 '25 10:03 hold-zt

可以在终端输入:metagpt --init-config 会自动创建config2.yaml,然后会显示路径,比如我的是Configuration file initialized at C:\Users\THUNDEROBOT.metagpt\config2.yaml 需要在这个文件里改配置

xukaizhao avatar Mar 19 '25 14:03 xukaizhao

可以在终端输入:metagpt --init-config 会自动创建config2.yaml,然后会显示路径,比如我的是Configuration file initialized at C:\Users\THUNDEROBOT.metagpt\config2.yaml 需要在这个文件里改配置

已经创建好并配置完成,还是相同的报错。 2025-03-20 10:19:23.396 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 12.266(s), this was the 5th time calling it. exp: Error code: 404 - {'err': True, 'msg': 'request route does not exist !'} 2025-03-20 10:19:35.718 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 24.578(s), this was the 6th time calling it. exp: Error code: 404 - {'err': True, 'msg': 'request route does not exist !'} 2025-03-20 10:19:35.722 | WARNING | metagpt.utils.common:wrapper:673 - There is a exception in role's execution, in order to resume, we delete the newest role communication message in the role's memory. 2025-03-20 10:19:35.757 | ERROR | metagpt.utils.common:wrapper:655 - Exception occurs, start to serialize the project, exp: Traceback (most recent call last): File "C:\Users\15832.conda\envs\MetaGPT\lib\site-packages\metagpt\utils\common.py", line 650, in wrapper result = await func(self, *args, **kwargs) File "C:\Users\15832.conda\envs\MetaGPT\lib\site-packages\metagpt\team.py", line 134, in run await self.env.run() openai.NotFoundError: Error code: 404 - {'err': True, 'msg': 'request route does not exist !'} 有一个小问题:openai api是一个需要中转的key,有url和模型名称, 这个api测试过可以正常访问,这里会不会有什么问题?

hold-zt avatar Mar 20 '25 02:03 hold-zt

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

github-actions[bot] avatar May 19 '25 00:05 github-actions[bot]

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.

github-actions[bot] avatar Jun 02 '25 00:06 github-actions[bot]