Skip to content

Commit dc4595b

Browse files
committed
fix: GENERATE_SQL_QUERY_LIMIT_ENABLED not work while saving data
1 parent 46d8530 commit dc4595b

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
@@ -841,7 +841,7 @@ def save_sql_data(self, session: Session, data_obj: Dict[str, Any]):
841841
limit = 1000
842842
if data_result:
843843
data_result = prepare_for_orjson(data_result)
844-
if data_result and len(data_result) > limit:
844+
if data_result and len(data_result) > limit and settings.GENERATE_SQL_QUERY_LIMIT_ENABLED:
845845
data_obj['data'] = data_result[:limit]
846846
data_obj['limit'] = limit
847847
else:

0 commit comments

Comments
 (0)