From c55b010d6fdd0acf6d025c4618d8f5d42fea6f83 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Fri, 5 Jun 2026 18:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(syzoj-header):=20?= =?UTF-8?q?restructure=20navigation=20menu=20and=20upgrade=20LLM=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove "来源/分类" (category.php) link from main navigation - Relocate "cppreference" to end of menu, after contest-related items - Add conditional "AI 聊天" section using `$OJ_AI_HTML` variable - Update LLM model from `MiniMax-M2.7` to `MiniMax-M3` in db_info.inc.php - Fix trailing whitespace in header.php template --- web/include/db_info.inc.php | 2 +- web/template/syzoj/header.php | 26 ++++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/web/include/db_info.inc.php b/web/include/db_info.inc.php index 6291506..330eeff 100644 --- a/web/include/db_info.inc.php +++ b/web/include/db_info.inc.php @@ -149,7 +149,7 @@ static $OJ_MENU_NEWS=true; static $OJ_LLM_ENABLED=false; // 总开关,设为true开启AI点评 static $OJ_LLM_API_URL="https://api.minimaxi.com/anthropic/v1/messages"; // API地址(MiniMax Anthropic兼容格式) static $OJ_LLM_API_KEY="sk-cp-w571CJpA_6WP5P6b_xGVbjOqXOGBWTQsiNY9xxAPambouIhD7ic3GHIoWce0ON_Y7Q0rVLzBWtgwwS8cQVUxS1guBxYkPJoJ33q0jEcx0Qei60bx5La4fB4"; // 填入你的MiniMax API Key -static $OJ_LLM_MODEL="MiniMax-M2.7"; // 模型名称,如 MiniMax-M2.7 / MiniMax-M2.5 / MiniMax-M2.5-highspeed +static $OJ_LLM_MODEL="MiniMax-M3"; // 模型名称,如 MiniMax-M3 / MiniMax-M2.7 / MiniMax-M2.5 / MiniMax-M2.5-highspeed static $OJ_LLM_MAX_TOKENS=65536; // 最大输出token数 static $OJ_LLM_TIMEOUT=60; // 请求超时(秒),LLM响应较慢建议60秒 static $OJ_LLM_SYSTEM_PROMPT=""; // 自定义系统prompt,留空使用内置默认 diff --git a/web/template/syzoj/header.php b/web/template/syzoj/header.php index 3d7c49e..0446756 100644 --- a/web/template/syzoj/header.php +++ b/web/template/syzoj/header.php @@ -203,7 +203,7 @@ a.label:hover {