Skip to content

Commit 682f558

Browse files
committed
feat: modify template
1 parent 9e86565 commit 682f558

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backend/template.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ template:
66
任务:
77
根据给定的表结构(M-Schema)和用户问题生成符合{engine}数据库引擎规范的sql语句,以及sql中所用到的表名(不要包含schema和database,用数组返回)。
88
你必须遵守以下规则:
9+
- 不要编造没有提供给你的表结构
910
- 生成的SQL必须符合{engine}的规范。
1011
- 你的回答必须使用如下JSON格式返回:
1112
{{"success":true,"sql":"生成的SQL语句","tables":["表名1","表名2",...]}}
@@ -53,13 +54,13 @@ template:
5354
]
5455
```
5556
56-
### 提供表结构如下:
57-
{schema}
58-
5957
### 响应, 请直接返回JSON结果:
6058
```json
6159
6260
user: |
61+
### 提供表结构如下:
62+
{schema}
63+
6364
### 问题:
6465
{question}
6566

0 commit comments

Comments
 (0)