AgentVerse icon indicating copy to clipboard operation
AgentVerse copied to clipboard

我卡在了宝可梦界面,想要对话一直显示waiting for the response,但是不见任何报错,请问这可能是什么原因呢

Open yileijin opened this issue 1 year ago • 2 comments

yileijin avatar Nov 23 '23 06:11 yileijin

可能是你的命令行没有正确配置代理。试试命令行中以下代码能否正确运行?

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)

chenweize1998 avatar Nov 23 '23 12:11 chenweize1998

非常感谢,不过我用你给的代码测试了我的openai接口调用没问题,但是那个宝可梦还是还是不出对话。这个可能是有关于服务器方面的原因吗?

yileijin avatar Nov 24 '23 09:11 yileijin