From 3794f3761867417f4e32689115b31feb85aa4d17 Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Mon, 26 Jan 2026 14:25:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=B0=8F=E7=B1=B3=20M?= =?UTF-8?q?imo=20API=20=E7=AB=AF=E7=82=B9=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 正确的端点是 https://api.xiaomimimo.com/v1/chat/completions - 移除错误的自定义端点提示 - 恢复默认端点配置 --- functions.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index 9782649..453822b 100644 --- a/functions.php +++ b/functions.php @@ -8804,7 +8804,7 @@ function argon_ajax_test_unified_api() { 'openai' => 'https://api.openai.com/v1/chat/completions', 'anthropic' => 'https://api.anthropic.com/v1/messages', 'deepseek' => 'https://api.deepseek.com/v1/chat/completions', - 'xiaomi' => '', // 小米 Mimo 需要在平台获取自定义端点 + 'xiaomi' => 'https://api.xiaomimimo.com/v1/chat/completions', 'qianwen' => 'https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions', 'wenxin' => 'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions', 'doubao' => 'https://ark.cn-beijing.volces.com/api/v3/chat/completions', @@ -8816,11 +8816,7 @@ function argon_ajax_test_unified_api() { $api_endpoint = !empty($api['api_endpoint']) ? $api['api_endpoint'] : (isset($default_endpoints[$api['provider']]) ? $default_endpoints[$api['provider']] : ''); if (empty($api_endpoint)) { - if ($api['provider'] === 'xiaomi') { - wp_send_json_error('小米 Mimo 需要配置自定义 API 端点。请访问 https://platform.xiaomimimo.com 获取您的专属端点地址'); - } else { - wp_send_json_error('未配置 API 端点'); - } + wp_send_json_error('未配置 API 端点'); return; }