瀏覽代碼

Minor fix: correct get_app_model mode for delete() (#25082)

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
tags/2.0.0-beta.1
Yongtao Huang 1 月之前
父節點
當前提交
865ba8bb4f
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/controllers/console/app/conversation.py

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

@@ -117,7 +117,7 @@ class CompletionConversationDetailApi(Resource):
@setup_required
@login_required
@account_initialization_required
@get_app_model(mode=[AppMode.CHAT, AppMode.AGENT_CHAT, AppMode.ADVANCED_CHAT])
@get_app_model(mode=AppMode.COMPLETION)
def delete(self, app_model, conversation_id):
if not current_user.is_editor:
raise Forbidden()

Loading…
取消
儲存