Skip to content

Commit

Permalink
fix: fix knowledge_space_dao.update_knowledge_space call in Knowledge… (
Browse files Browse the repository at this point in the history
  • Loading branch information
fayfox authored Mar 4, 2024
1 parent 191f546 commit 5f3ee35
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dbgpt/app/knowledge/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f3ee35

Please sign in to comment.