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

feat: 从环境变量读取千帆平台 AK SK 失效 #399

Open
Dobiichi-Origami opened this issue Mar 29, 2024 · 1 comment
Open

feat: 从环境变量读取千帆平台 AK SK 失效 #399

Dobiichi-Origami opened this issue Mar 29, 2024 · 1 comment

Comments

@Dobiichi-Origami
Copy link
Collaborator

Dobiichi-Origami commented Mar 29, 2024

System Info

qianfan.errors.InvalidArgumentError: access_key and secret_key must be provided

Reproduction

如果我在代码中先引入了 trainer 相关的内容

比如 import qianfan.trainer

然后再设置环境变量

就会报错:
qianfan.errors.InvalidArgumentError: access_key and secret_key must be provided

@Dobiichi-Origami
Copy link
Collaborator Author

@danielhjz PTAL

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

1 participant