fix: keywords field not persist in segements api (#17151)

This commit is contained in:
liuzhenghua
2025-04-01 11:20:32 +08:00
committed by GitHub
parent 6372cb7b41
commit d5b48a0aa3

View File

@@ -1663,6 +1663,7 @@ class SegmentService:
content=content,
word_count=len(content),
tokens=tokens,
keywords=segment_item.get("keywords", []),
status="completed",
indexing_at=datetime.datetime.now(datetime.UTC).replace(tzinfo=None),
completed_at=datetime.datetime.now(datetime.UTC).replace(tzinfo=None),