修复向量知识库报错
This commit is contained in:
parent
9a7089081b
commit
7cbe08a892
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user