修复向量知识库报错

This commit is contained in:
limin 2025-02-11 10:16:31 +08:00
parent 9a7089081b
commit 7cbe08a892

View File

@ -127,6 +127,9 @@ public class RagHttpService {
detector.dataEnd();
String charset = detector.getDetectedCharset();
detector.reset();
if(charset == null){
return StandardCharsets.UTF_8.toString();
}
return charset;
}