You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
依赖项:
com.alibaba.cloud.ai
spring-ai-alibaba-agent-framework
1.1.2.0
错误提示:
Exception: 400 - {"request_id":"cbc12946-e186-9146-8296-7157e9453e7f","code":"InvalidParameter","message":"url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url"}
试过重新构建DashScopeChatModel:
@bean
public DashScopeChatModel qwen3ChatModel() {
DashScopeApi api = DashScopeApi.builder()
.baseUrl("https://dashscope.aliyuncs.com")
.apiKey(apiKey)
.build();
DashScopeChatOptions chatOptions = DashScopeChatOptions.builder()
.model("qwen3.5-plus")
.enableThinking(true)
.multiModel(false)
.build();
return new DashScopeChatModel(
api,
chatOptions,
ToolCallingManager.builder().build(),
RetryUtils.DEFAULT_RETRY_TEMPLATE,
ObservationRegistry.NOOP
);
}
但是没什么用,调用react.call时,还是会出现上述错误。但是使用默认的qwen-plus调用时,就可以正常返回。qwen3.5-plus 这个模型使用reactAgent要如何才能调用?
Beta Was this translation helpful? Give feedback.
All reactions