| @@ -802,7 +802,7 @@ else if ($dopost == 'attsDlg') { | |||||
| $divname = 'getCatMap'; | $divname = 'getCatMap'; | ||||
| echo "<div class='card shadow-sm'><div class='card-header'>选择副栏目</div><div class='card-body'>"; | echo "<div class='card shadow-sm'><div class='card-header'>选择副栏目</div><div class='card-body'>"; | ||||
| $tus = new TypeUnitSelector(); | $tus = new TypeUnitSelector(); | ||||
| ?> | |||||
| ?> | |||||
| <form name="quicksel" action="javascript:;" method="get"> | <form name="quicksel" action="javascript:;" method="get"> | ||||
| <div class="quicksel"><?php $tus->ListAllType($channelid);?></div> | <div class="quicksel"><?php $tus->ListAllType($channelid);?></div> | ||||
| <div class="text-center"> | <div class="text-center"> | ||||
| @@ -65,7 +65,7 @@ | |||||
| <td>跳转网址</td> | <td>跳转网址</td> | ||||
| <td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td> | <td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td> | ||||
| </tr> | </tr> | ||||
| <tr> | |||||
| <tr> | |||||
| <td>标签</td> | <td>标签</td> | ||||
| <td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td> | <td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td> | ||||
| <td>权重</td> | <td>权重</td> | ||||
| @@ -61,7 +61,7 @@ | |||||
| <td>跳转网址</td> | <td>跳转网址</td> | ||||
| <td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td> | <td colspan="3"><input type="text" name="redirecturl" id="redirecturl" class="admin-input-lg"></td> | ||||
| </tr> | </tr> | ||||
| <tr> | |||||
| <tr> | |||||
| <td>标签</td> | <td>标签</td> | ||||
| <td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td> | <td><input type="text" name="tags" id="tags" onChange="$Obj('keywords').value=this.value;" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td> | ||||
| <td>权重</td> | <td>权重</td> | ||||
| @@ -131,7 +131,7 @@ | |||||
| <button type="button" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button> | <button type="button" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | |||||
| <tr> | |||||
| <td>描述</td> | <td>描述</td> | ||||
| <td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td> | <td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"></textarea></td> | ||||
| </tr> | </tr> | ||||
| @@ -195,7 +195,7 @@ | |||||
| <td>文件名称</td> | <td>文件名称</td> | ||||
| <td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td> | <td><input type="text" name="filename" id="filename" class="admin-input-sm">(不包括文件扩展名)</td> | ||||
| </tr> | </tr> | ||||
| <tr> | |||||
| <tr> | |||||
| <td>发布时间</td> | <td>发布时间</td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| @@ -415,7 +415,6 @@ | |||||
| $("#mdlAI").modal('show'); | $("#mdlAI").modal('show'); | ||||
| } | } | ||||
| $("#btnAIAction").click(async function() { | $("#btnAIAction").click(async function() { | ||||
| let prompt = document.getElementById("prompt").value; | let prompt = document.getElementById("prompt").value; | ||||
| let modelid = document.getElementById("modelid").value; | let modelid = document.getElementById("modelid").value; | ||||
| let req = await fetch(`api.php?action=get_ai_server&pname=catalog_add&modelid=${modelid}&prompt=${prompt}`); | let req = await fetch(`api.php?action=get_ai_server&pname=catalog_add&modelid=${modelid}&prompt=${prompt}`); | ||||
| @@ -4112,4 +4112,4 @@ INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALU | |||||
| INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_ai_max_tokens', '最大令牌数(为空则不限,默认采用模型默认值)', 8, 'string', ''); | INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_ai_max_tokens', '最大令牌数(为空则不限,默认采用模型默认值)', 8, 'string', ''); | ||||
| INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_ai_temperature', '采样温度(为空则采用模型默认值)', 8, 'string', ''); | INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_ai_temperature', '采样温度(为空则采用模型默认值)', 8, 'string', ''); | ||||
| INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_ai_top_p', '核采样(为空则采用模型默认值)', 8, 'string', ''); | INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_ai_top_p', '核采样(为空则采用模型默认值)', 8, 'string', ''); | ||||
| INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_ai_enabled', '是否开启智能助手', 8, 'bool', 'Y'); | |||||
| INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_ai_enabled', '是否开启AI功能', 8, 'bool', 'Y'); | |||||
| @@ -4,7 +4,7 @@ | |||||
| <ul> | <ul> | ||||
| <li><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a> | <li><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a> | ||||
| {dede:arclist titlelen='42' row='10'} | {dede:arclist titlelen='42' row='10'} | ||||
| <ul> | |||||
| <ul> | |||||
| <li><a href="[field:arcurl/]">[field:title/]</a></li> | <li><a href="[field:arcurl/]">[field:title/]</a></li> | ||||
| <li>([field:pubdate function="MyDate('m-d',@me)"/])</li> | <li>([field:pubdate function="MyDate('m-d',@me)"/])</li> | ||||
| </ul> | </ul> | ||||