diff --git a/db/update18.4.sql b/db/update18.4.sql index 0bdd16f9c3..aea7bdc909 100644 --- a/db/update18.4.sql +++ b/db/update18.4.sql @@ -56,7 +56,8 @@ VALUES (2120, 'ai', 'promptunpublish', 655, ',open,biz,max,', ',rnd,', '1', 70), (2121, 'ai', 'prompts', 653, ',open,biz,max,', ',rnd,', '1', 75), (2122, 'ai', 'promptview', 653, ',open,biz,max,', ',rnd,', '1', 80), - (2123, 'ai', 'promptexecute', 651, ',open,biz,max,', ',rnd,', '1', 85); + (2123, 'ai', 'promptexecute', 651, ',open,biz,max,', ',rnd,', '1', 85), + (2124, 'ai', 'roletemplates', 654, ',open,biz,max,', ',rnd,', '1', 86); REPLACE INTO `zt_privmanager` (`id`, `parent`, `code`, `type`, `edition`, `vision`, `order`) @@ -124,6 +125,7 @@ VALUES (2121, 'priv', 'zh-cn', 'ai-promptBrowse', '', ''), (2122, 'priv', 'zh-cn', 'ai-promptView', '', ''), (2123, 'priv', 'zh-cn', 'ai-promptExecute', '', ''), + (2124, 'priv', 'zh-cn', 'ai-roleTemplates', '', ''), (2107, 'priv', 'zh-tw', 'ai-modelBrowse', '', ''), (2108, 'priv', 'zh-tw', 'ai-modelEdit', '', ''), (2109, 'priv', 'zh-tw', 'ai-modelTestConnection', '', ''), @@ -141,6 +143,7 @@ VALUES (2121, 'priv', 'zh-tw', 'ai-promptBrowse', '', ''), (2122, 'priv', 'zh-tw', 'ai-promptView', '', ''), (2123, 'priv', 'zh-tw', 'ai-promptExecute', '', ''), + (2124, 'priv', 'zh-tw', 'ai-roleTemplates', '', ''), (2107, 'priv', 'en', 'ai-modelBrowse', '', ''), (2108, 'priv', 'en', 'ai-modelEdit', '', ''), (2109, 'priv', 'en', 'ai-modelTestConnection', '', ''), @@ -158,6 +161,7 @@ VALUES (2121, 'priv', 'en', 'ai-promptBrowse', '', ''), (2122, 'priv', 'en', 'ai-promptView', '', ''), (2123, 'priv', 'en', 'ai-promptExecute', '', ''), + (2124, 'priv', 'en', 'ai-roleTemplates', '', ''), (2107, 'priv', 'de', 'ai-modelBrowse', '', ''), (2108, 'priv', 'de', 'ai-modelEdit', '', ''), (2109, 'priv', 'de', 'ai-modelTestConnection', '', ''), @@ -175,6 +179,7 @@ VALUES (2121, 'priv', 'de', 'ai-promptBrowse', '', ''), (2122, 'priv', 'de', 'ai-promptView', '', ''), (2123, 'priv', 'de', 'ai-promptExecute', '', ''), + (2124, 'priv', 'de', 'ai-roleTemplates', '', ''), (2107, 'priv', 'fr', 'ai-modelBrowse', '', ''), (2108, 'priv', 'fr', 'ai-modelEdit', '', ''), (2109, 'priv', 'fr', 'ai-modelTestConnection', '', ''), @@ -191,7 +196,8 @@ VALUES (2120, 'priv', 'fr', 'ai-promptUnpublish', '', ''), (2121, 'priv', 'fr', 'ai-promptBrowse', '', ''), (2122, 'priv', 'fr', 'ai-promptView', '', ''), - (2123, 'priv', 'fr', 'ai-promptExecute', '', ''); + (2123, 'priv', 'fr', 'ai-promptExecute', '', ''), + (2124, 'priv', 'fr', 'ai-roleTemplates', '', ''); REPLACE INTO `zt_privrelation` (`priv`, `type`, `relationPriv`) @@ -219,4 +225,5 @@ VALUES (2115, 'depend', 2113), (2115, 'depend', 2114), (2115, 'depend', 2116), (2115, 'depend', 2117), (2115, 'depend', 2118), (2115, 'depend', 2123), (2116, 'depend', 2113), (2116, 'depend', 2114), (2116, 'depend', 2115), (2116, 'depend', 2117), (2116, 'depend', 2118), (2116, 'depend', 2123), (2117, 'depend', 2113), (2117, 'depend', 2114), (2117, 'depend', 2115), (2117, 'depend', 2116), (2117, 'depend', 2118), (2117, 'depend', 2123), - (2118, 'depend', 2113), (2118, 'depend', 2114), (2118, 'depend', 2115), (2118, 'depend', 2116), (2118, 'depend', 2117), (2118, 'depend', 2123); + (2118, 'depend', 2113), (2118, 'depend', 2114), (2118, 'depend', 2115), (2118, 'depend', 2116), (2118, 'depend', 2117), (2118, 'depend', 2123), + (2124, 'depend', 2113), (2113, 'depend', 2124); diff --git a/module/ai/lang/en.php b/module/ai/lang/en.php index 8bb4d017c8..2fde68cd78 100644 --- a/module/ai/lang/en.php +++ b/module/ai/lang/en.php @@ -47,6 +47,7 @@ $lang->ai->promptUnpublish = 'Unpublish Prompt'; $lang->ai->promptBrowse = 'Browse Prompts'; $lang->ai->promptView = 'View Prompt'; $lang->ai->promptExecute = 'Execute Prompt'; +$lang->ai->roleTemplates = 'Manage Role Templates'; $lang->ai->nextStep = 'Next'; $lang->ai->goTesting = 'Go testing'; diff --git a/module/ai/lang/zh-cn.php b/module/ai/lang/zh-cn.php index e684f05785..101fb8b001 100644 --- a/module/ai/lang/zh-cn.php +++ b/module/ai/lang/zh-cn.php @@ -47,6 +47,7 @@ $lang->ai->promptUnpublish = '取消发布提词'; $lang->ai->promptBrowse = '浏览提词列表'; $lang->ai->promptView = '查看提词详情'; $lang->ai->promptExecute = '执行提词'; +$lang->ai->roleTemplates = '管理角色模板'; $lang->ai->nextStep = '下一步'; $lang->ai->goTesting = '去调试'; diff --git a/module/group/lang/resource.php b/module/group/lang/resource.php index cf20a9b8cb..9a1c2123f4 100644 --- a/module/group/lang/resource.php +++ b/module/group/lang/resource.php @@ -1940,6 +1940,7 @@ $lang->resource->ai->promptunpublish = 'promptUnpublish'; $lang->resource->ai->prompts = 'promptBrowse'; $lang->resource->ai->promptview = 'promptView'; $lang->resource->ai->promptexecute = 'promptExecute'; +$lang->resource->ai->roletemplates = 'roleTemplates'; $lang->api->methodOrder[0] = 'index'; $lang->api->methodOrder[5] = 'createLib';