正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -617,9 +617,10 @@ class RelayInquiry extends Command | @@ -617,9 +617,10 @@ class RelayInquiry extends Command | ||
| 617 | } | 617 | } |
| 618 | 618 | ||
| 619 | $text = Gpt::instance()->openai_chat_qqs($ai_command); | 619 | $text = Gpt::instance()->openai_chat_qqs($ai_command); |
| 620 | - $text = Translate::tran($text, $lang); //再次翻译 避免AI回复的语种不准 | 620 | + if ($lang != 'en' && !Str::contains($lang, 'zh')) { |
| 621 | + $text = Translate::tran($text, $lang); | ||
| 622 | + } | ||
| 621 | $this->logChannel()->info("AI询盘文案", [$ai_command, $text]); | 623 | $this->logChannel()->info("AI询盘文案", [$ai_command, $text]); |
| 622 | - $text = Common::deal_keywords($text); | ||
| 623 | return Common::deal_str($text); | 624 | return Common::deal_str($text); |
| 624 | } | 625 | } |
| 625 | 626 |
-
请 注册 或 登录 后发表评论