mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: GENERATE_SQL_QUERY_LIMIT_ENABLED not work while saving data
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user