feat(llm): 文件上传失败时抛出异常

- 在文件上传失败时,添加异常抛出
This commit is contained in:
Liuyang 2025-02-12 14:55:00 +08:00
parent b91c09d991
commit 71dab5dd28

View File

@ -133,6 +133,7 @@ public class RagHttpService {
} else {
// 修改状态为 上传失败
updateFileState(documents, KnowledgeStatusEnum.UPLOAD_FAILED);
throw new RuntimeException("文件上传失败:"+ragEmbedRespVO.getMessage());
}
}
}