feat/multi-channel-framework #17

Merged
MerCry merged 4 commits from feat/multi-channel-framework into main 2026-03-13 09:56:02 +00:00
3 changed files with 5 additions and 6 deletions
Showing only changes of commit 3bf1c83f43 - Show all commits

View File

@ -28,7 +28,7 @@ public class TransferService {
return true;
}
if (confidence < transferConfig.getConfidenceThreshold()) {
/*if (confidence < transferConfig.getConfidenceThreshold()) {
log.info("触发转人工: AI置信度过低 confidence={}", confidence);
return true;
}
@ -45,7 +45,7 @@ public class TransferService {
log.info("触发转人工: 会话时长超限 duration={}ms", duration);
return true;
}
}
}*/
return false;
}

View File

@ -125,9 +125,8 @@ public class MessageRouterServiceImpl implements MessageRouterService {
double confidence = chatResponse.getConfidence() != null ? chatResponse.getConfidence() : 0.0;
int messageCount = sessionManagerService.getMessageCount(session.getSessionId());
// boolean shouldTransfer = chatResponse.getShouldTransfer() != null && chatResponse.getShouldTransfer();
boolean shouldTransfer =false;
if (!shouldTransfer) {
boolean shouldTransfer = chatResponse.getShouldTransfer() != null && chatResponse.getShouldTransfer();
if (shouldTransfer) {
shouldTransfer = transferService.shouldTransferToManual(
message.getContent(),
confidence,

View File

@ -24,7 +24,7 @@ wecom:
callback-url: /wecom/callback
transfer:
enabled: false
enabled: true
keywords:
- 人工
- 转人工