Commit d6442497 authored by 陈立彬's avatar 陈立彬

修改配置

parent f4011a95
......@@ -22,7 +22,7 @@ public class ExamAppFacade {
@Value("${dify.api_base:https://ai-api.tech.breezeai.cn/v1}")
private String difyBase;
@Value("${dify.api_key:app-yaoa2lAMGJzB11ZGxd5P4iTQ}")
@Value("${dify.api_key:app-ilgoEphXjLw0I7x7fGeCyKYk}")
private String apiKey;
private final RestTemplate restTemplate = new RestTemplate();
......@@ -44,8 +44,8 @@ public class ExamAppFacade {
headers.setContentType(MediaType.APPLICATION_JSON);
headers.setBearerAuth(apiKey);
log.info("异步请求参数,sessionId = {}", sessionId);
log.info("异步请求参数,req = {}", JSONObject.toJSONString(param));
log.info("异步请求参数1,sessionId = {}", sessionId);
log.info("异步请求参数2,req = {}", JSONObject.toJSONString(param));
HttpEntity<String> postEntity = new HttpEntity<>(param.toJSONString(), headers);
ResponseEntity<String> response = restTemplate.postForEntity(difyBase + "/chat-messages", postEntity, String.class);
log.info("执行结果:", JSONObject.parseObject(response.getBody()));
......
......@@ -99,5 +99,5 @@ minio-file:
download-url-prefix: http://minio:9000/
dify:
api_base: http://dify-api-ga.tech:5001/v1
api_key: app-yaoa2lAMGJzB11ZGxd5P4iTQ
\ No newline at end of file
api_base: http://dify-api:5001/v1
api_key: app-ilgoEphXjLw0I7x7fGeCyKYk
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment