fix(exam): 正确返回文件未索引错误

This commit is contained in:
User
2026-07-19 14:25:40 +08:00
parent d7fb98faf6
commit df33a912af
6 changed files with 252 additions and 28 deletions

View File

@@ -49,6 +49,7 @@ _STATUS_MESSAGES: Dict[int, str] = {
4011: "向量库不存在",
4012: "文件内容为空",
4013: "权限不足",
4016: "文件未向量化",
# 服务端错误 (50xx)
5000: "服务器内部错误",
@@ -113,6 +114,7 @@ FILE_NOT_FOUND = 4010
COLLECTION_NOT_FOUND = 4011
NO_CONTENT = 4012
PERMISSION_DENIED = 4013
FILE_NOT_INDEXED = 4016
# 服务端错误 (50xx)
INTERNAL_ERROR = 5000