增加语料内容为空的判断

This commit is contained in:
zren25
2025-04-01 22:22:48 +08:00
parent 55d471613e
commit fedf9ed5df
2 changed files with 5 additions and 1 deletions

View File

@@ -113,6 +113,10 @@ public class TmTelephoneCorpusServiceImpl extends ServiceImpl<TmTelephoneCorpusM
log.info("电话语料时长小于10秒不进行dify处理");
return;
}
if (segments == null || segments.isEmpty()) {
log.info("电话语料内容segments为空不进行dify处理");
return;
}
// 遍历 segments
StringBuffer chatList = new StringBuffer();
segments.stream()