mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
no message
This commit is contained in:
parent
2f32b53d19
commit
360d4dbbe2
@ -232,7 +232,10 @@ class AI
|
|||||||
$authParams['model_name'] = $thinkMatch[1];
|
$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)) {
|
if (Base::isError($authResult)) {
|
||||||
return Base::retError($authResult['msg']);
|
return Base::retError($authResult['msg']);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user