作者 lyh

gx

... ... @@ -81,8 +81,8 @@ class Common
$content = str_replace('$keyword$', $param['keywords'], $info['ai']);
$data = [
'messages'=>[
['role'=>'system','content'=>$info['scene']],
['role'=>'assistant','content'=>$content.$str],
// ['role'=>'system','content'=>$info['scene']],
['role'=>'user','content'=>$content.$str],
]
];
return http_post($url,json_encode($data));
... ...
... ... @@ -12,7 +12,7 @@ use App\Models\Ai\AiLog;
class AiCommandController extends BaseController
{
//获取文本内容
public $chat_url = 'v2/openai_chat';
public $chat_url = 'v2/openai_chat_qqs';
/**
* @name :ai生成
* @author :liyuhang
... ...