|
@@ -36,8 +36,7 @@ class AiCommandService |
|
@@ -36,8 +36,7 @@ class AiCommandService |
|
36
|
public function send_layout_design($content){
|
36
|
public function send_layout_design($content){
|
|
37
|
$param = [
|
37
|
$param = [
|
|
38
|
'messages'=>[
|
38
|
'messages'=>[
|
|
39
|
- 'content'=>$content,
|
|
|
|
40
|
- 'role'=>'user',
|
39
|
+ ['content'=>$content, 'role'=>'user'],
|
|
41
|
],
|
40
|
],
|
|
42
|
'model'=> $this->model,
|
41
|
'model'=> $this->model,
|
|
43
|
'supplier'=> $this->supplier,
|
42
|
'supplier'=> $this->supplier,
|
|
@@ -49,7 +48,8 @@ class AiCommandService |
|
@@ -49,7 +48,8 @@ class AiCommandService |
|
49
|
"apikey: $this->api_key",
|
48
|
"apikey: $this->api_key",
|
|
50
|
"Content-Type:application/json;charset=utf-8",
|
49
|
"Content-Type:application/json;charset=utf-8",
|
|
51
|
);
|
50
|
);
|
|
52
|
- $result = http_post($this->url,json_encode($param,true),$header);
|
51
|
+ $result = $this->http_post($this->url,json_encode($param,true),$header);
|
|
53
|
return $result;
|
52
|
return $result;
|
|
54
|
}
|
53
|
}
|
|
|
|
54
|
+
|
|
55
|
} |
55
|
} |