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

erniebot.errors.APIError: system error #6

Open
atouboot opened this issue Dec 12, 2023 · 2 comments
Open

erniebot.errors.APIError: system error #6

atouboot opened this issue Dec 12, 2023 · 2 comments

Comments

@atouboot
Copy link

import auto_anno_2 as aa2

wg = ['xxx', 'xxxyyy']
aa2.config['aistudio']['access_token'] = 'myapi'

print(aa2.cls('xxxxxxx', wg))
在print(aa2.cls('xxxxxxx', wg))处报错,显示
发生异常: APIError
system error
erniebot.errors.APIError: system error

请问这如何解决

@LinChentang
Copy link

LinChentang commented Dec 29, 2023

不是显示API错误吗,可以看一下API配置是不是正确的

@Skypow2012
Copy link
Member

不好意思,刚看到,可以通过以下方式解决:
1、升级到最新版本,pip install -U auto_anno_2
2、在这里获取自己的access_token,https://aistudio.baidu.com/index/accessToken
如果还有问题欢迎继续回复

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