(improvement)(Headless) Add Text2SQLType to control whether rules and large models are passed (#891)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-04-07 14:33:17 +08:00
committed by GitHub
parent 12e25c0c50
commit 5f6e9ae194
8 changed files with 48 additions and 17 deletions

View File

@@ -177,7 +177,7 @@ public class ChatQueryServiceImpl implements ChatQueryService {
.candidateQueries(new ArrayList<>())
.mapInfo(new SchemaMapInfo())
.modelIdToDataSetIds(modelIdToDataSetIds)
.enableLLM(queryReq.isEnableLLM())
.text2SQLType(queryReq.getText2SQLType())
.build();
BeanUtils.copyProperties(queryReq, queryCtx);
return queryCtx;