♻️ refactor(syzoj-header): restructure navigation menu and upgrade LLM model
- 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
This commit is contained in:
@@ -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,留空使用内置默认
|
||||
|
||||
Reference in New Issue
Block a user