|
...
|
...
|
@@ -36,8 +36,7 @@ class AiCommandService |
|
|
|
public function send_layout_design($content){
|
|
|
|
$param = [
|
|
|
|
'messages'=>[
|
|
|
|
'content'=>$content,
|
|
|
|
'role'=>'user',
|
|
|
|
['content'=>$content, 'role'=>'user'],
|
|
|
|
],
|
|
|
|
'model'=> $this->model,
|
|
|
|
'supplier'=> $this->supplier,
|
|
...
|
...
|
@@ -49,7 +48,8 @@ class AiCommandService |
|
|
|
"apikey: $this->api_key",
|
|
|
|
"Content-Type:application/json;charset=utf-8",
|
|
|
|
);
|
|
|
|
$result = http_post($this->url,json_encode($param,true),$header);
|
|
|
|
$result = $this->http_post($this->url,json_encode($param,true),$header);
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|