From 549de89ed0a549de88726368eed8ca828961760f Mon Sep 17 00:00:00 2001 From: xuzuodong Date: Tue, 1 Oct 2024 17:49:01 +0800 Subject: [PATCH] Revert "fix: chat API is not bringing the conversation/session history (#8965)" This reverts commit 5f8a27074ebe5797b30ce44e8fc6252adf4bef51. --- api/controllers/service_api/app/completion.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/controllers/service_api/app/completion.py b/api/controllers/service_api/app/completion.py index 5c3601cf236275..8d8e356c4cb940 100644 --- a/api/controllers/service_api/app/completion.py +++ b/api/controllers/service_api/app/completion.py @@ -4,7 +4,6 @@ from werkzeug.exceptions import InternalServerError, NotFound import services -from constants import UUID_NIL from controllers.service_api import api from controllers.service_api.app.error import ( AppUnavailableError, @@ -108,7 +107,6 @@ def post(self, app_model: App, end_user: EndUser): parser.add_argument("conversation_id", type=uuid_value, location="json") parser.add_argument("retriever_from", type=str, required=False, default="dev", location="json") parser.add_argument("auto_generate_name", type=bool, required=False, default=True, location="json") - parser.add_argument("parent_message_id", type=uuid_value, required=False, default=UUID_NIL, location="json") args = parser.parse_args()