新版群添加功能

This commit is contained in:
wong
2025-12-29 16:09:22 +08:00
parent 82f9b9371a
commit db0985504a
16 changed files with 2582 additions and 8 deletions

View File

@@ -37,11 +37,12 @@ class DouBaoAI extends Controller
if (empty($params)){
$content = $this->request->param('content', '');
$model = $this->request->param('model', 'doubao-seed-1-8-251215');
if(empty($content)){
return json_encode(['code' => 500, 'msg' => '提示词缺失']);
}
$params = [
'model' => 'doubao-seed-1-8-251215',
'model' => $model,
'messages' => [
['role' => 'system', 'content' => '你现在是存客宝的AI助理你精通中国大陆的法律'],
['role' => 'user', 'content' => $content],