Skip to content

Commit 012963e

Browse files
authored
Merge pull request #178 from dlimeng/dev
fix cm-mysql.yaml
2 parents 9efc20e + 9c07f33 commit 012963e

File tree

1 file changed

+51
-45
lines changed

1 file changed

+51
-45
lines changed

deploy/kubernetes/helm-solidui/templates/cm-mysql.yaml

Lines changed: 51 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -67,50 +67,50 @@ data:
6767
DROP TABLE IF EXISTS `solidui_datasource_type`;
6868
6969
CREATE TABLE `solidui_datasource_type` (
70-
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
71-
`name` varchar(32) NOT NULL DEFAULT '',
72-
`description` varchar(255) NOT NULL DEFAULT '',
73-
`option` varchar(32) NOT NULL DEFAULT '',
74-
`classifier` varchar(32) NOT NULL DEFAULT '',
75-
`icon` varchar(255) NOT NULL DEFAULT '',
76-
`layers` int(11) NOT NULL,
77-
PRIMARY KEY (`id`)
70+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
71+
`name` varchar(32) NOT NULL DEFAULT '',
72+
`description` varchar(255) NOT NULL DEFAULT '',
73+
`option` varchar(32) NOT NULL DEFAULT '',
74+
`classifier` varchar(32) NOT NULL DEFAULT '',
75+
`icon` varchar(255) NOT NULL DEFAULT '',
76+
`layers` int(11) NOT NULL,
77+
PRIMARY KEY (`id`)
7878
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
7979
8080
8181
DROP TABLE IF EXISTS `solidui_datasource_type_key`;
8282
8383
CREATE TABLE `solidui_datasource_type_key` (
84-
`id` int(11) NOT NULL AUTO_INCREMENT,
85-
`data_source_type_id` int(11) NOT NULL,
86-
`key` varchar(32) COLLATE utf8_bin NOT NULL,
87-
`name` varchar(32) COLLATE utf8_bin NOT NULL,
88-
`name_en` varchar(32) COLLATE utf8_bin NOT NULL,
89-
`default_value` varchar(50) COLLATE utf8_bin DEFAULT NULL,
90-
`value_type` varchar(50) COLLATE utf8_bin NOT NULL,
91-
`scope` varchar(50) COLLATE utf8_bin DEFAULT NULL,
92-
`require` tinyint(1) DEFAULT '0',
93-
`description` varchar(200) COLLATE utf8_bin DEFAULT NULL,
94-
`description_en` varchar(200) COLLATE utf8_bin DEFAULT NULL,
95-
`value_regex` varchar(200) COLLATE utf8_bin DEFAULT NULL,
96-
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
97-
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
98-
PRIMARY KEY (`id`)
84+
`id` int(11) NOT NULL AUTO_INCREMENT,
85+
`data_source_type_id` int(11) NOT NULL,
86+
`key` varchar(32) COLLATE utf8_bin NOT NULL,
87+
`name` varchar(32) COLLATE utf8_bin NOT NULL,
88+
`name_en` varchar(32) COLLATE utf8_bin NOT NULL,
89+
`default_value` varchar(50) COLLATE utf8_bin DEFAULT NULL,
90+
`value_type` varchar(50) COLLATE utf8_bin NOT NULL,
91+
`scope` varchar(50) COLLATE utf8_bin DEFAULT NULL,
92+
`require` tinyint(1) DEFAULT '0',
93+
`description` varchar(200) COLLATE utf8_bin DEFAULT NULL,
94+
`description_en` varchar(200) COLLATE utf8_bin DEFAULT NULL,
95+
`value_regex` varchar(200) COLLATE utf8_bin DEFAULT NULL,
96+
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
97+
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
98+
PRIMARY KEY (`id`)
9999
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
100100
101101
102102
103103
DROP TABLE IF EXISTS `solidui_job_element`;
104104
105105
CREATE TABLE `solidui_job_element` (
106-
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
107-
`project_id` int(11) NOT NULL,
108-
`name` varchar(255) NOT NULL DEFAULT '',
109-
`data` longtext NOT NULL,
110-
`data_type` varchar(255) NOT NULL DEFAULT '',
111-
`create_time` datetime NOT NULL,
112-
`update_time` datetime NOT NULL,
113-
PRIMARY KEY (`id`)
106+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
107+
`project_id` int(11) NOT NULL,
108+
`name` varchar(255) NOT NULL DEFAULT '',
109+
`data` longtext NOT NULL,
110+
`data_type` varchar(255) NOT NULL DEFAULT '',
111+
`create_time` datetime NOT NULL,
112+
`update_time` datetime NOT NULL,
113+
PRIMARY KEY (`id`)
114114
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='storage of various elements';
115115
116116
@@ -147,15 +147,15 @@ data:
147147
DROP TABLE IF EXISTS `solidui_project`;
148148
149149
CREATE TABLE `solidui_project` (
150-
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
151-
`user_name` varchar(100) NOT NULL DEFAULT '',
152-
`project_name` varchar(255) NOT NULL DEFAULT '',
153-
`image` varchar(255) DEFAULT NULL,
154-
`description` varchar(255) DEFAULT NULL,
155-
`create_time` datetime DEFAULT NULL,
156-
`update_time` datetime DEFAULT NULL,
157-
`status` int(11) NOT NULL DEFAULT '0',
158-
PRIMARY KEY (`id`)
150+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
151+
`user_name` varchar(100) NOT NULL DEFAULT '',
152+
`project_name` varchar(255) NOT NULL DEFAULT '',
153+
`image` varchar(255) DEFAULT NULL,
154+
`description` varchar(255) DEFAULT NULL,
155+
`create_time` datetime DEFAULT NULL,
156+
`update_time` datetime DEFAULT NULL,
157+
`status` int(11) NOT NULL DEFAULT '0',
158+
PRIMARY KEY (`id`)
159159
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
160160
161161
@@ -177,8 +177,9 @@ data:
177177
CREATE TABLE `solidui_model_type` (
178178
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
179179
`name` varchar(255) DEFAULT NULL,
180+
`code` varchar(255) DEFAULT NULL,
180181
`type_name` varchar(255) DEFAULT NULL,
181-
`prompt` varchar(255) DEFAULT NULL,
182+
`prompt` text DEFAULT NULL,
182183
`token` varchar(255) DEFAULT NULL,
183184
`baseurl` varchar(255) DEFAULT NULL,
184185
PRIMARY KEY (`id`)
@@ -205,8 +206,13 @@ data:
205206
VALUES
206207
(1,'mysql','mysql','mysql','mysql','mysql',3);
207208
208-
INSERT INTO `solidui_model_type` (`id`, `name`, `type_name`, `prompt`, `token`, `baseurl`)
209+
INSERT INTO `solidui_model_type` (`id`, `name`, `code`, `type_name`, `prompt`, `token`, `baseurl`)
209210
VALUES
210-
(1,'gpt-3.5-turbo','gpt',NULL,NULL,NULL),
211-
(2,'gpt-4','gpt',NULL,NULL,NULL),
212-
(3,'chatglm_lite','chatglm',NULL,NULL,NULL);
211+
(1,'gpt-3.5-turbo', 'python', 'gpt','First, here is a history of what I asked you to do earlier. The actual prompt follows after ENDOFHISTORY. History:\n\n{}ENDOFHISTORY.\n\nWrite Python code that does the following: \n\n{}\n\nNote, the code is going to be executed in a Jupyter Python kernel.\n\nLast instruction, and this is the most important, just return code. No other outputs, as your full response will directly be executed in the kernel. \n\nTeacher mode: if you want to give a download link, just print it as <a href=''/solidui/models/download?file=INSERT_FILENAME_HERE''>Download file</a>. Replace INSERT_FILENAME_HERE with the actual filename. So just print that HTML to stdout. No actual downloading of files!',NULL,NULL),
212+
(2,'gpt-4','python', 'gpt','First, here is a history of what I asked you to do earlier. The actual prompt follows after ENDOFHISTORY. History:\n\n{}ENDOFHISTORY.\n\nWrite Python code that does the following: \n\n{}\n\nNote, the code is going to be executed in a Jupyter Python kernel.\n\nLast instruction, and this is the most important, just return code. No other outputs, as your full response will directly be executed in the kernel. \n\nTeacher mode: if you want to give a download link, just print it as <a href=''/solidui/models/download?file=INSERT_FILENAME_HERE''>Download file</a>. Replace INSERT_FILENAME_HERE with the actual filename. So just print that HTML to stdout. No actual downloading of files!',NULL,NULL),
213+
(3,'chatglm_lite','python', 'chatglm','首先,这是我之前要求您做的事情的历史记录。实际的提示将在历史结束后呈现。历史:\n\n{}历史结束。\n\n编写以下Python代码:\n\n{}\n\n注意,代码将在Jupyter Python内核中执行。\n\n最后一条指令,这是最重要的,只返回代码。不要输出其他内容,因为您的完整响应将直接在内核中执行。\n\n教师模式:如果您想提供一个下载链接,只需将其打印为 <a href=''/solidui/models/download?file=INSERT_FILENAME_HERE''>下载文件</a >。用实际的文件名替换INSERT_FILENAME_HERE。所以只需将该HTML打印到标准输出。无需实际下载文件!',NULL,NULL),
214+
(4,'gpt-3.5-turbo','html', 'gpt', 'First, here is a history of what I asked you to do earlier. The actual prompt follows after ENDOFHISTORY. History:\n\n{}ENDOFHISTORY.\n\nYour task is to generate an HTML code snippet using the specified JavaScript library (such as D3, echartjs, three.js, etc.) based on the following requirements:\n\n{}\n\nPlease note that:\n1. The HTML code will be executed in a Chrome web browser.\n2. Only return the HTML content without any additional explanatory or descriptive text.\n3. If there''s a need to provide a download link within the HTML content, format it as follows: <a href=''/solidui/models/download?file=INSERT_FILENAME_HERE''>Download file</a>, replacing INSERT_FILENAME_HERE with the actual filename.\n4. Ensure to include the necessary `<script>` tags for incorporating the JavaScript library you are using.
215+
\n\nEnsure that the response contains only HTML content to be directly executed in the kernel, with no other outputs.',NULL,NULL),
216+
(5,'chatglm_lite','html', 'chatglm','首先,这是我之前要求你做的事情的历史记录。实际的提示在“ENDOFHISTORY”之后。历史记录:\n\n{}ENDOFHISTORY。\n\n你的任务是根据以下要求使用指定的JavaScript库(如D3、echartjs、three.js等)生成一个HTML代码片段:\n\n{}\n\n请注意:\n\n1.HTML代码将在Chrome浏览器中执行。\n 2.只返回HTML内容,不包括任何额外的解释或描述文本。\n3.如果需要在HTML内容中提供下载链接,请按照以下格式编写:<a href=''/solidui/models/download?file=INSERT_FILENAME_HERE''>下载文件</a>,并将INSERT_FILENAME_HERE替换为实际的文件名。\n4.确保包含必要的<script>标签来引入你正在使用的JavaScript库。\n\n确保响应仅包含直接在内核中执行的HTML内容,不包含其他输出。',NULL,NULL),
217+
(6,'gpt-4','html', 'gpt','First, here is a history of what I asked you to do earlier. The actual prompt follows after ENDOFHISTORY. History:\n\n{}ENDOFHISTORY.\n\nYour task is to generate an HTML code snippet using the specified JavaScript library (such as D3, echartjs, three.js, etc.) based on the following requirements:\n\n{}\n\nPlease note that:\n1. The HTML code will be executed in a Chrome web browser.\n2. Only return the HTML content without any additional explanatory or descriptive text.\n3. If there''s a need to provide a download link within the HTML content, format it as follows: <a href=''/solidui/models/download?file=INSERT_FILENAME_HERE''>Download file</a>, replacing INSERT_FILENAME_HERE with the actual filename.\n4. Ensure to include the necessary `<script>` tags for incorporating the JavaScript library you are using.
218+
\n\nEnsure that the response contains only HTML content to be directly executed in the kernel, with no other outputs.',NULL,NULL);

0 commit comments

Comments
 (0)