diff --git a/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/PromptHelper.java b/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/PromptHelper.java index 3ad844a361..014fd7ca70 100644 --- a/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/PromptHelper.java +++ b/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/PromptHelper.java @@ -114,9 +114,11 @@ public String buildSchemaStr(LLMReq llmReq) { dimension.getAlias().stream().forEach(a -> alias.append(a + ",")); dimensionStr.append(" ALIAS '" + alias + "'"); } + if (StringUtils.isNotEmpty(dimension.getTimeFormat())) { + dimensionStr.append(" FORMAT '" + dimension.getTimeFormat() + "'"); + } if (StringUtils.isNotEmpty(dimension.getDescription())) { - dimensionStr.append( - " COMMENT '" + dimension.getDescription() + "'"); + dimensionStr.append(" COMMENT '" + dimension.getDescription() + "'"); } dimensionStr.append(">"); dimensions.add(dimensionStr.toString());