From 6f708726e4c44e9ed0c723f1ef49810706b626ff Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Mon, 30 Oct 2023 19:57:46 -0300 Subject: [PATCH] PERF: Better chat thread content format for LLM (#273) --- lib/modules/ai_helper/chat_thread_titler.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/modules/ai_helper/chat_thread_titler.rb b/lib/modules/ai_helper/chat_thread_titler.rb index 2e78068f..ebc21ff0 100644 --- a/lib/modules/ai_helper/chat_thread_titler.rb +++ b/lib/modules/ai_helper/chat_thread_titler.rb @@ -14,6 +14,7 @@ module DiscourseAi .joins(:user) .pluck(:username, :message) .map { |username, message| "#{username}: #{message}" } + .join("\n") end def suggested_title