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

使用通义千问apiKey,提示403,”Access denied“ #2

Closed
Frank-Ge opened this issue Jan 10, 2024 · 2 comments
Closed

使用通义千问apiKey,提示403,”Access denied“ #2

Frank-Ge opened this issue Jan 10, 2024 · 2 comments

Comments

@Frank-Ge
Copy link

我注册了一个通义千问的账号,现在使用测试用例提示如下报错:
com.alibaba.dashscope.exception.ApiException: {"statusCode":403,"message":"Access denied.","code":"AccessDenied","isJson":true,"requestId":"bb33ef98-29c4-902b-8306-08658c6c71aa"}; status body:{"statusCode":403,"message":"Access denied.","code":"AccessDenied","isJson":true,"requestId":"bb33ef98-29c4-902b-8306-08658c6c71aa"}
这个是什么原因呢

@Frank-Ge
Copy link
Author

我在阿里云的官网搜索,好像是没有开通测试权限。
https://help.aliyun.com/zh/dashscope/developer-reference/return-status-code-description

@Frank-Ge
Copy link
Author

本地已经跑通,dashscope-sdk-java版本低了,查看阿里云官网升级了版本后,改变模型com.starcloud.ops.llm.langchain.core.model.llm.qwen.Qwen#model为
private String model = Generation.Models.QWEN_MAX;
可以使用

@df007df df007df closed this as completed Jan 23, 2024
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