feat(llm): 文件上传失败时抛出异常
- 在文件上传失败时,添加异常抛出
This commit is contained in:
parent
b91c09d991
commit
71dab5dd28
@ -133,6 +133,7 @@ public class RagHttpService {
|
||||
} else {
|
||||
// 修改状态为 上传失败
|
||||
updateFileState(documents, KnowledgeStatusEnum.UPLOAD_FAILED);
|
||||
throw new RuntimeException("文件上传失败:"+ragEmbedRespVO.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user