chore(llm): 添加 autoEvaluation 接口请求体的日志输出
- 在调用 autoEvaluation接口前,增加对请求体的 log.info 日志输出 - 有助于调试和排查接口调用问题
This commit is contained in:
parent
05841ce69c
commit
f232d2a536
@ -222,6 +222,7 @@ public class TrainHttpService {
|
||||
List<String> dimension = Stream.of("事实性错误","情感倾向性","语义连贯性").collect(Collectors.toList());
|
||||
jsonObject.put("dimension",dimension);
|
||||
String body = JSONObject.toJSONString(jsonObject);
|
||||
log.info(" autoEvaluation body :{}", body);
|
||||
String res = HttpUtils.post(url+autoEvaluation, map, body);
|
||||
log.info(" autoEvaluation:{}", res);
|
||||
JSONObject resJson = JSONObject.parseObject(res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user