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

无法运行:err TypeError: 'generator' object is not subscriptable #1

Closed
yihong0618 opened this issue Dec 5, 2022 · 19 comments
Closed

Comments

@yihong0618
Copy link

yihong0618 commented Dec 5, 2022

按照 README 运行 python example_story.py

image

@bupticybee
Copy link
Owner

bupticybee commented Dec 5, 2022

按照 README 运行 python example_story.py

image

这个情况我也遇到过,目前还很头疼,不知道为什么会这样,你有兴趣看下么?因为我这边的代码加起来就40行,我寻思应该很好debug

@bupticybee
Copy link
Owner

这个项目才写出来不到10分钟你就down了,牛逼啊

@bupticybee
Copy link
Owner

这个问题偶现,而且和机器有关,不同机器表现不同,能确定的是如果使用自己申请的token就不会有问题

@yihong0618
Copy link
Author

@bupticybee 感谢,猜测 token 验证了机器的 mac, 我申请个 token 试试。

@bupticybee
Copy link
Owner

@bupticybee 感谢,猜测 token 验证了机器的 mac, 我申请个 token 试试。

我估计是,我淘宝买的openai账号,所以我寻思就算被ban了也没什么损失

@acheong08
Copy link

acheong08 commented Dec 5, 2022

It has been fixed. Update with pip3 install revChatGPT --upgrade

@acheong08
Copy link

我淘宝买的openai账号

OpenAI 账号是免费的。

@bupticybee
Copy link
Owner

我淘宝买的openai账号

OpenAI 账号是免费的。

我知道,我的问题是我没有美国手机号,openai账号在中国是无法注册的,需要同时有美国ip和美国电话

@bupticybee
Copy link
Owner

It has been fixed. Update with pip3 install revChatGPT --upgrade

Thanks, @yihong0618 麻烦看看升级后是否还有问题

@yihong0618
Copy link
Author

@bupticybee 一样的报错。

@bupticybee
Copy link
Owner

@acheong08
Copy link

@yihong0618 Remember to update your token

@acheong08
Copy link

Working on improving error message

@acheong08
Copy link

@yihong0618 @bupticybee
ChatGPT is down. The website is down.

@acheong08
Copy link

image

@bupticybee
Copy link
Owner

@yihong0618 @bupticybee ChatGPT is down. The website is down.

image

So that's why, still amazed by how this LM perform. Thanks very much for the explain.

@yihong0618
Copy link
Author

@bupticybee 这个没问题,感谢。猜测是 API 不稳定,我晚上好好试一试
image

@acheong08
Copy link

有些人的token无法用。有些人的却可以。

@bupticybee
Copy link
Owner

Ok, considered solved, closing. Reopen if necessary.

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

3 participants