AgentVerse
AgentVerse copied to clipboard
我卡在了宝可梦界面,想要对话一直显示waiting for the response,但是不见任何报错,请问这可能是什么原因呢
可能是你的命令行没有正确配置代理。试试命令行中以下代码能否正确运行?
import openai
import asyncio
async def create_chat_completion():
chat_completion_resp = await openai.ChatCompletion.acreate(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world"}])
return chat_completion_resp
if __name__ == '__main__':
response = asyncio.run(create_chat_completion())
print(response)
非常感谢,不过我用你给的代码测试了我的openai接口调用没问题,但是那个宝可梦还是还是不出对话。这个可能是有关于服务器方面的原因吗?