Skip to content

Commit

Permalink
fix: 修复创建web知识库时,向量模型错误 (#948)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3edb1f2)
  • Loading branch information
shaohuzhang1 committed Aug 8, 2024
1 parent c5c816b commit 5971a4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/dataset/serializers/dataset_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def save_web(self, instance: Dict, with_valid=True):
dataset = DataSet(
**{'id': dataset_id, 'name': instance.get("name"), 'desc': instance.get('desc'), 'user_id': user_id,
'type': Type.web,
'embedding_mode_id': instance.get('embedding_mode_id'),
'meta': {'source_url': instance.get('source_url'), 'selector': instance.get('selector'),
'embedding_mode_id': instance.get('embedding_mode_id')}})
dataset.save()
Expand Down

0 comments on commit 5971a4c

Please sign in to comment.