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
为什么gpt4-turbo的回复为空? #1242
Labels
Comments
可能是网络问题,可以试试 如果没有返回 {
"error": {
"message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": null
}
} 说明你的网络无法连接到外网,可以检查一下你的网络环境,如VPN连接情况。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一直等待对端的response?
ecs-user@iZbp15znu62vc68ovwhaazZ:~/AI/MetaGPT/examples$ python build_customized_agent.py
2024-05-02 12:04:36.877 | INFO | metagpt.const:get_metagpt_package_root:29 - Package root set to /home/ecs-user/AI/MetaGPT
2024-05-02 12:04:40.687 | INFO | main:main:100 - write a function that calculates the product of a list and run it
2024-05-02 12:04:40.689 | INFO | main:_act:84 - Alice(RunnableCoder): to do SimpleWriteCode(SimpleWriteCode)
^CTraceback (most recent call last):
File "/home/ecs-user/AI/MetaGPT/examples/build_customized_agent.py", line 106, in
fire.Fire(main)
File "/home/ecs-user/.local/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/ecs-user/.local/lib/python3.10/site-packages/fire/core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/home/ecs-user/.local/lib/python3.10/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/home/ecs-user/AI/MetaGPT/examples/build_customized_agent.py", line 101, in main
result = asyncio.run(role.run(msg))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
self.run_forever()
File "/usr/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1871, in _run_once
event_list = self._selector.select(timeout)
File "/usr/lib/python3.10/selectors.py", line 469, in select
fd_event_list = self._selector.poll(timeout, max_ev)
KeyboardInterrupt
The text was updated successfully, but these errors were encountered: