You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='storage of various elements';
115
115
116
116
@@ -147,15 +147,15 @@ data:
147
147
DROP TABLE IF EXISTS `solidui_project`;
148
148
149
149
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`)
159
159
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
160
160
161
161
@@ -177,8 +177,9 @@ data:
177
177
CREATE TABLE `solidui_model_type` (
178
178
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
179
179
`name` varchar(255) DEFAULT NULL,
180
+
`code` varchar(255) DEFAULT NULL,
180
181
`type_name` varchar(255) DEFAULT NULL,
181
-
`prompt` varchar(255) DEFAULT NULL,
182
+
`prompt` text DEFAULT NULL,
182
183
`token` varchar(255) DEFAULT NULL,
183
184
`baseurl` varchar(255) DEFAULT NULL,
184
185
PRIMARY KEY (`id`)
@@ -205,8 +206,13 @@ data:
205
206
VALUES
206
207
(1,'mysql','mysql','mysql','mysql','mysql',3);
207
208
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`)
209
210
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),
(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),
(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