From 360d4dbbe27d17f1680635bc6b33bf132de9f291 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 12 Nov 2025 07:18:54 +0000 Subject: [PATCH] no message --- app/Module/AI.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Module/AI.php b/app/Module/AI.php index 8ec18ea34..92c85e9ba 100644 --- a/app/Module/AI.php +++ b/app/Module/AI.php @@ -232,7 +232,10 @@ class AI $authParams['model_name'] = $thinkMatch[1]; } - $authResult = Ihttp::ihttp_post('http://nginx/ai/invoke/auth', $authParams, 30); + $authResult = Ihttp::ihttp_request('http://nginx/ai/invoke/auth', $authParams, [ + 'Content-Type' => 'application/x-www-form-urlencoded', + 'Authorization' => 'Bearer ' . Base::token(), + ], 30); if (Base::isError($authResult)) { return Base::retError($authResult['msg']); }