合并分支 'zhl' 到 'master'
处理指令中的topic 查看合并请求 !1105
正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -34,6 +34,9 @@ class AiCommandLogic extends BaseLogic | @@ -34,6 +34,9 @@ class AiCommandLogic extends BaseLogic | ||
| 34 | if(strpos($prompt, '{keyword}') !== false) { | 34 | if(strpos($prompt, '{keyword}') !== false) { |
| 35 | $prompt = str_replace('{keyword}', $this->param['keywords'], $prompt); | 35 | $prompt = str_replace('{keyword}', $this->param['keywords'], $prompt); |
| 36 | } | 36 | } |
| 37 | + if(strpos($prompt, '{topic}') !== false) { | ||
| 38 | + $prompt = str_replace('{topic}', $this->param['keywords'], $prompt); | ||
| 39 | + } | ||
| 37 | if(strpos($prompt, '{company introduction}') !== false) { | 40 | if(strpos($prompt, '{company introduction}') !== false) { |
| 38 | $company_introduction = $this->getDeployOptimize('company_en_description'); | 41 | $company_introduction = $this->getDeployOptimize('company_en_description'); |
| 39 | $prompt = str_replace('{company introduction}', $company_introduction, $prompt); | 42 | $prompt = str_replace('{company introduction}', $company_introduction, $prompt); |
-
请 注册 或 登录 后发表评论