
















"/aliyun/app")
(public class MyAppController {
private DashScopeAgent dashScopeAgent;
private final String appId = "你的APP-ID";
public MyAppController(DashScopeAgentApi dashScopeAgentApi) {
this.dashScopeAgent = new DashScopeAgent(dashScopeAgentApi);
}
"/getMyVideo")
(value =public String getMyVideo(("message") String message) {
ChatResponse chatResponse = dashScopeAgent.call(new Prompt(message, DashScopeAgentOptions.builder().withAppId(appId).build()));
AssistantMessage output = chatResponse.getResult().getOutput();
return output.getText();
}
}


human:
baidu:
api-key: ${BAIDU_API_KEY}
secret-key: ${BAIDU_SECRET_KEY}
aliyun:
access-key-id: ${ALIYUN_ACCESS_KEY_ID}
access-key-secret: ${ALIYUN_ACCESS_KEY_SECRET}
chat:
api-key: ${BAIDU_API_KEY}
base-url: https://qianfan.baidubce.com/v2
models:
- title: DeepSeek-R1
value: deepseek-r1
server:
port: 8080
tomcat:
uri-encoding: UTF-8







本篇文章来源于微信公众号: 小研说技术
文章评论