diff --git a/lib/modules/ai_helper/llm_prompt.rb b/lib/modules/ai_helper/llm_prompt.rb index b6149682..76ccbdab 100644 --- a/lib/modules/ai_helper/llm_prompt.rb +++ b/lib/modules/ai_helper/llm_prompt.rb @@ -100,7 +100,7 @@ module DiscourseAi if suggestions.length > 1 suggestions else - suggestions.split("\n").map(&:strip) + suggestions.first.split("\n").map(&:strip) end else [Nokogiri::HTML5.fragment(content).at("ai").text]