Skip to content
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

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

Open
yileijin opened this issue Nov 23, 2023 · 2 comments

Comments

@yileijin
Copy link

No description provided.

@yileijin yileijin changed the title 我卡在了宝可梦界面,想要对话一直显示waiting 佛如 我卡在了宝可梦界面,想要对话一直显示waiting for responsing,但是不见任何报错,请问这可能是什么原因呢 Nov 23, 2023
@yileijin yileijin changed the title 我卡在了宝可梦界面,想要对话一直显示waiting for responsing,但是不见任何报错,请问这可能是什么原因呢 我卡在了宝可梦界面,想要对话一直显示waiting for the response,但是不见任何报错,请问这可能是什么原因呢 Nov 23, 2023
@chenweize1998
Copy link
Collaborator

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

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)

@yileijin
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants