From 49bb2c6d8bcf724cc3f70a25f052667de46996cb Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 11 Dec 2023 21:46:57 +0800 Subject: [PATCH] fix:use correct sql generated mode in java code (#496) --- .../com/tencent/supersonic/chat/query/llm/s2sql/LLMReq.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat/core/src/main/java/com/tencent/supersonic/chat/query/llm/s2sql/LLMReq.java b/chat/core/src/main/java/com/tencent/supersonic/chat/query/llm/s2sql/LLMReq.java index d89ffaf93..f0bebc587 100644 --- a/chat/core/src/main/java/com/tencent/supersonic/chat/query/llm/s2sql/LLMReq.java +++ b/chat/core/src/main/java/com/tencent/supersonic/chat/query/llm/s2sql/LLMReq.java @@ -19,7 +19,8 @@ public class LLMReq { private String priorExts; - private SqlGenerationMode sqlGenerationMode = SqlGenerationMode.TWO_STEP_AUTO_COT_SELF_CONSISTENCY; + // FIXME: Currently Java code is not use AUTO_COT, only two step, but it is used in Python code, we use it here just for compatibility. The Java code will be updated in the future. + private SqlGenerationMode sqlGenerationMode = SqlGenerationMode.TWO_STEP_AUTO_COT; @Data public static class ElementValue {