mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(feature)(chat)Add switch to enable LLM-based memory review, as it leads to more token costs. #1385
This commit is contained in:
@@ -56,8 +56,8 @@ public class ParseInfoProcessor implements ResultProcessor {
|
||||
if (StringUtils.isBlank(correctS2SQL)) {
|
||||
return;
|
||||
}
|
||||
|
||||
List<FieldExpression> expressions = SqlSelectHelper.getFilterExpression(correctS2SQL);
|
||||
|
||||
//set dataInfo
|
||||
try {
|
||||
if (!org.apache.commons.collections.CollectionUtils.isEmpty(expressions)) {
|
||||
@@ -70,6 +70,9 @@ public class ParseInfoProcessor implements ResultProcessor {
|
||||
log.error("set dateInfo error :", e);
|
||||
}
|
||||
|
||||
if (correctS2SQL.equals(sqlInfo.getParsedS2SQL())) {
|
||||
return;
|
||||
}
|
||||
//set filter
|
||||
Long dataSetId = parseInfo.getDataSetId();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user