作者 赵彬吉

update

@@ -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