正在显示
1 个修改的文件
包含
15 行增加
和
19 行删除
| 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 | + * https://gemini.google.com/app |
| 6 | + * Class AiCommandService | ||
| 7 | + * @package App\Services | ||
| 18 | */ | 8 | */ |
| 19 | class AiCommandService | 9 | class AiCommandService |
| 20 | { | 10 | { |
| @@ -22,16 +12,22 @@ class AiCommandService | @@ -22,16 +12,22 @@ class AiCommandService | ||
| 22 | 12 | ||
| 23 | public $api_key = 'nnLsyr3IhPNsJt5OvTtD9SVCLEixMntg'; | 13 | public $api_key = 'nnLsyr3IhPNsJt5OvTtD9SVCLEixMntg'; |
| 24 | 14 | ||
| 25 | - public $model = 'gemini-2.0-flash-lite'; | 15 | + /** |
| 16 | + * @var string gemini 模型 | ||
| 17 | + * | ||
| 18 | + * gemini-2.0-flash-lite | ||
| 19 | + * gemini-2.5-pro-preview-05-06 | ||
| 20 | + * gemini-2.5-flash-preview-05-20 | ||
| 21 | + * gemini-2.5-flash-preview-04-17 | ||
| 22 | + */ | ||
| 23 | + public $model = 'gemini-2.5-pro-preview-05-06'; | ||
| 26 | 24 | ||
| 27 | public $supplier = 'google'; | 25 | public $supplier = 'google'; |
| 28 | 26 | ||
| 29 | /** | 27 | /** |
| 30 | - * @remark :Ai一键排版 | ||
| 31 | - * @name :ai_click_layout | ||
| 32 | - * @author :lyh | ||
| 33 | - * @method :post | ||
| 34 | - * @time :2025/5/26 17:03 | 28 | + * AI排版 |
| 29 | + * @param $content | ||
| 30 | + * @return array | ||
| 35 | */ | 31 | */ |
| 36 | public function send_layout_design($content){ | 32 | public function send_layout_design($content){ |
| 37 | $param = [ | 33 | $param = [ |
-
请 注册 或 登录 后发表评论