refactor(module-llm):优化日志打印异常信息并规范代码格式
- 在 catch块中,将异常日志改为打印异常消息,提高日志可读性 - 在 getParagraphHitRate 方法中,调整参数间的空格,保持代码整洁
This commit is contained in:
parent
9a31e48b0a
commit
8b23760075
@ -136,7 +136,7 @@ public class ConversationController {
|
||||
conversationService.chatStream(chatReqVO, emitter, response);
|
||||
emitter.complete();
|
||||
} catch (Exception e) {
|
||||
log.error("处理对话推理请求时发生异常", e);
|
||||
log.error("处理对话推理请求时发生异常:{}", e.getMessage());
|
||||
try {
|
||||
emitter.completeWithError(e);
|
||||
} catch (Exception ex) {
|
||||
@ -144,6 +144,7 @@ public class ConversationController {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return emitter;
|
||||
}
|
||||
|
||||
@ -151,7 +152,7 @@ public class ConversationController {
|
||||
@Operation(summary = "获得大模型对话记录分页")
|
||||
@PreAuthorize("@ss.hasPermission('llm:conversation:query')")
|
||||
public CommonResult<ParagraphHitRateListVO> getParagraphHitRate (@Valid String uuid, @Valid String groupId) {
|
||||
return success(conversationService.getParagraphHitRate(uuid,groupId));
|
||||
return success(conversationService.getParagraphHitRate(uuid, groupId));
|
||||
}
|
||||
|
||||
@PostMapping("/text-to-image")
|
||||
|
Loading…
x
Reference in New Issue
Block a user