Forráskód Böngészése

mark weight type as optional (#16701)

Jyong 4 hónapja%!(EXTRA string=óta)
szülő
commit
78f2ec8f32

+ 1 - 1
api/services/entities/knowledge_entities/knowledge_entities.py

@@ -95,7 +95,7 @@ class WeightKeywordSetting(BaseModel):
 
 
 class WeightModel(BaseModel):
-    weight_type: str
+    weight_type: Optional[str] = None
     vector_setting: Optional[WeightVectorSetting] = None
     keyword_setting: Optional[WeightKeywordSetting] = None