fix: GENERATE_SQL_QUERY_LIMIT_ENABLED not work while saving data

This commit is contained in:
ulleo
2025-11-04 17:11:50 +08:00
committed by ulleo
parent 46d8530d78
commit dc4595b193
+1 -1
View File
@@ -841,7 +841,7 @@ class LLMService:
limit = 1000
if data_result:
data_result = prepare_for_orjson(data_result)
if data_result and len(data_result) > limit:
if data_result and len(data_result) > limit and settings.GENERATE_SQL_QUERY_LIMIT_ENABLED:
data_obj['data'] = data_result[:limit]
data_obj['limit'] = limit
else: