refactor(module-llm):调整日志打印内容- 修改 modelCompletions 和 textToImage 方法中的日志输出- 为不同请求和响应添加更具体的日志标识
-优化日志格式,提高可读性和调试效率
This commit is contained in:
parent
f56c7a7f18
commit
ed4e61cf26
@ -72,13 +72,13 @@ public class ModelService {
|
||||
log.info("request: {}", req);
|
||||
String result;
|
||||
if (StringUtils.isBlank(url)) {
|
||||
log.info("url: {}", llmBackendProperties.getModelCompletions());
|
||||
log.info("url1: {}", llmBackendProperties.getModelCompletions());
|
||||
result = HttpUtils.post(llmBackendProperties.getModelCompletions(), null, JSON.toJSONString(req));
|
||||
} else {
|
||||
log.info("url: {}", url);
|
||||
log.info("url2: {}", url);
|
||||
result = HttpUtils.post(url, null, JSON.toJSONString(req));
|
||||
}
|
||||
log.info("response: {}", result);
|
||||
log.info("11 response: {}", result);
|
||||
if (StringUtils.isBlank(result)) {
|
||||
return null;
|
||||
}
|
||||
@ -216,7 +216,7 @@ public class ModelService {
|
||||
log.info("url: {}", llmBackendProperties.getTextToImage());
|
||||
log.info("request: {}", req);
|
||||
String result = HttpUtils.post(llmBackendProperties.getTextToImage(), new HashMap<>(), JSON.toJSONString(req));
|
||||
log.info("response: {}", result);
|
||||
log.info("22 response: {}", result);
|
||||
if (StringUtils.isBlank(result)) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user