From 5f3ee3580474623a45b597461ab42fad97c4fc3a Mon Sep 17 00:00:00 2001 From: Pete Wooden Date: Mon, 4 Mar 2024 21:54:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20fix=20knowledge=5Fspace=5Fdao.update=5Fk?= =?UTF-8?q?nowledge=5Fspace=20call=20in=20Knowledge=E2=80=A6=20(#1250)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbgpt/app/knowledge/service.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dbgpt/app/knowledge/service.py b/dbgpt/app/knowledge/service.py index 8e34e47cc..7f42f6c05 100644 --- a/dbgpt/app/knowledge/service.py +++ b/dbgpt/app/knowledge/service.py @@ -428,7 +428,15 @@ def update_knowledge_space( - space_id: space id - space_request: KnowledgeSpaceRequest """ - knowledge_space_dao.update_knowledge_space(space_id, space_request) + entity = KnowledgeSpaceEntity( + id=space_id, + name=space_request.name, + vector_type=space_request.vector_type, + desc=space_request.desc, + owner=space_request.owner, + ) + + knowledge_space_dao.update_knowledge_space(entity) def delete_space(self, space_name: str): """delete knowledge space