fix(ChatKnowledge): Fix knowledge command load bug (#1767)

Co-authored-by: huangjh131 <14678508+huangjh131@user.noreply.gitee.com>
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
This commit is contained in:
huangjh131
2024-08-01 18:41:23 +08:00
committed by GitHub
parent 25d7d94b89
commit 7ea9b8c419
3 changed files with 8 additions and 5 deletions

View File

@@ -16,12 +16,12 @@ class KnowledgeSpaceRequest(BaseModel):
"""name: knowledge space name"""
"""vector_type: vector type"""
id: int = None
id: Optional[int] = None
name: str = None
"""vector_type: vector type"""
vector_type: str = None
"""vector_type: vector type"""
domain_type: str = "normal"
domain_type: str = "Normal"
"""desc: description"""
desc: str = None
"""owner: owner"""