springbootAI调用百炼大模型失败

在阿里云上没实名认证,技术有api-key,应用也会报错

实名认证之前,访问应用

http://localhost:18080/helloworld/simple/chat?query=%E7%BB%99%E6%88%91%E8%AE%B2%E4%B8%80%E4%B8%AA%E7%AC%91%E8%AF%9D%E5%90%A7
 [spring-ai-alibaba-helloworld] [io-18080-exec-3] o.s.a.r.a.SpringAiRetryAutoConfiguration : Retry error. Retry count: 1, Exception: HTTP 403 - {"code":"AccessDenied.Unpurchased","message":"Access to model denied. Please make sure you are eligible for using the model.","request_id":"7228dea3-cb61-4b48-8892-17f79572b3f2"}

org.springframework.ai.retry.NonTransientAiException: HTTP 403 - {"code":"AccessDenied.Unpurchased","message":"Access to model denied. Please make sure you are eligible for using the model.","request_id":"7228dea3-cb61-4b48-8892-17f79572b3f2"}
	at org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration$2.handleError(SpringAiRetryAutoConfiguration.java:109) ~[spring-ai-autoconfigure-retry-1.0.0.jar:1.0.0]

实名认证之后访问应用

就是还没确定下,访问的是哪个模型。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值