Commit fc6f6565 by 陈健智

工具集-摘要提取接口ACCESS-KEY补充

parent aefac40b
......@@ -1036,6 +1036,7 @@ public class ToolsetServiceImpl implements ToolsetService {
info.put("content", StringUtils.substring(text, 0, 5000));
// 请求参数 请求头
HttpHeaders headers = new HttpHeaders();
headers.add("ACCESS-KEY", "a0143d64-7d42-430b-b6f2-dd7c0508cb3d");
headers.setContentType(MediaType.APPLICATION_JSON);
HttpEntity<String> request = new HttpEntity<>(info.toJSONString(), headers);
ResponseEntity<String> response = restTemplate.postForEntity(dbArticleSummaryUrl, request, String.class);
......
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