Skip to content

Commit a285b86

Browse files
fix: validate ds
1 parent ed176c1 commit a285b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/chat/task/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ def run_analysis_or_predict_task(self, action_type: str):
10321032
def validate_history_ds(self):
10331033
_ds = self.ds
10341034
if not self.current_assistant:
1035-
current_ds = self.session.exec(CoreDatasource, _ds.id)
1035+
current_ds = self.session.get(CoreDatasource, _ds.id)
10361036
if not current_ds:
10371037
raise Exception('ds is invalid')
10381038
else:

0 commit comments

Comments
 (0)