瀏覽代碼

clean console apis and rag cleans. (#25042)

Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
tags/1.8.1
湛露先生 1 月之前
父節點
當前提交
1fff4620e6
沒有連結到貢獻者的電子郵件帳戶。

+ 0
- 1
api/controllers/console/explore/conversation.py 查看文件

@@ -61,7 +61,6 @@ class ConversationApi(InstalledAppResource):
ConversationService.delete(app_model, conversation_id, current_user)
except ConversationNotExistsError:
raise NotFound("Conversation Not Exists.")
WebConversationService.unpin(app_model, conversation_id, current_user)

return {"result": "success"}, 204


+ 0
- 2
api/controllers/web/conversation.py 查看文件

@@ -73,8 +73,6 @@ class ConversationApi(WebApiResource):
ConversationService.delete(app_model, conversation_id, end_user)
except ConversationNotExistsError:
raise NotFound("Conversation Not Exists.")
WebConversationService.unpin(app_model, conversation_id, end_user)

return {"result": "success"}, 204



+ 1
- 1
api/core/rag/extractor/blob/blob.py 查看文件

@@ -107,7 +107,7 @@ class Blob(BaseModel):
Blob instance
"""
if mime_type is None and guess_type:
_mimetype = mimetypes.guess_type(path)[0] if guess_type else None
_mimetype = mimetypes.guess_type(path)[0]
else:
_mimetype = mime_type
# We do not load the data immediately, instead we treat the blob as a

Loading…
取消
儲存