mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: modify template
This commit is contained in:
@@ -6,6 +6,7 @@ template:
|
||||
任务:
|
||||
根据给定的表结构(M-Schema)和用户问题生成符合{engine}数据库引擎规范的sql语句,以及sql中所用到的表名(不要包含schema和database,用数组返回)。
|
||||
你必须遵守以下规则:
|
||||
- 不要编造没有提供给你的表结构
|
||||
- 生成的SQL必须符合{engine}的规范。
|
||||
- 你的回答必须使用如下JSON格式返回:
|
||||
{{"success":true,"sql":"生成的SQL语句","tables":["表名1","表名2",...]}}
|
||||
@@ -53,13 +54,13 @@ template:
|
||||
]
|
||||
```
|
||||
|
||||
### 提供表结构如下:
|
||||
{schema}
|
||||
|
||||
### 响应, 请直接返回JSON结果:
|
||||
```json
|
||||
|
||||
user: |
|
||||
### 提供表结构如下:
|
||||
{schema}
|
||||
|
||||
### 问题:
|
||||
{question}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user