作者 lyh

gx

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