Skip to content

Commit dad3091

Browse files
committed
fix: add workspace_id to knowledge retrieval
1 parent a3e2e8b commit dad3091

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/knowledge/serializers/knowledge.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ def save_web(self, instance: Dict, with_valid=True):
538538
type=instance.get('type', KnowledgeType.WEB),
539539
scope=self.data.get('scope', KnowledgeScope.WORKSPACE),
540540
folder_id=folder_id,
541+
workspace_id=self.data.get('workspace_id'),
541542
embedding_model_id=instance.get('embedding'),
542543
meta={
543544
'source_url': instance.get('source_url'),

0 commit comments

Comments
 (0)