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

View File

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

View File

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