作者 周海龙

合并分支 'zhl' 到 'master'

Zhl



查看合并请求 !2073
1 <?php 1 <?php
2 -/**  
3 - * @remark :  
4 - * @name :AiCommandService.php  
5 - * @author :lyh  
6 - * @method :post  
7 - * @time :2025/5/26 17:01  
8 - */  
9 -  
10 namespace App\Services; 2 namespace App\Services;
11 3
12 /** 4 /**
13 - * @remark :AI指令返回数据  
14 - * @name :AiCommandService  
15 - * @author :lyh  
16 - * @method :post  
17 - * @time :2025/5/26 17:01 5 + * Class AiCommandService
  6 + * @package App\Services
18 */ 7 */
19 class AiCommandService 8 class AiCommandService
20 { 9 {
@@ -22,16 +11,22 @@ class AiCommandService @@ -22,16 +11,22 @@ class AiCommandService
22 11
23 public $api_key = 'nnLsyr3IhPNsJt5OvTtD9SVCLEixMntg'; 12 public $api_key = 'nnLsyr3IhPNsJt5OvTtD9SVCLEixMntg';
24 13
25 - public $model = 'gemini-2.0-flash-lite'; 14 + /**
  15 + * @var string gemini 模型
  16 + * https://gemini.google.com/app
  17 + * gemini-2.0-flash-lite
  18 + * gemini-2.5-pro-preview-05-06
  19 + * gemini-2.5-flash-preview-05-20
  20 + * gemini-2.5-flash-preview-04-17
  21 + */
  22 + public $model = 'gemini-2.5-pro-preview-05-06';
26 23
27 public $supplier = 'google'; 24 public $supplier = 'google';
28 25
29 /** 26 /**
30 - * @remark :Ai一键排版  
31 - * @name :ai_click_layout  
32 - * @author :lyh  
33 - * @method :post  
34 - * @time :2025/5/26 17:03 27 + * AI排版
  28 + * @param $content
  29 + * @return array
35 */ 30 */
36 public function send_layout_design($content){ 31 public function send_layout_design($content){
37 $param = [ 32 $param = [