PERF: Better chat thread content format for LLM (#273)

This commit is contained in:
Rafael dos Santos Silva 2023-10-30 19:57:46 -03:00 committed by GitHub
parent cbfd8507b1
commit 6f708726e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ module DiscourseAi
.joins(:user) .joins(:user)
.pluck(:username, :message) .pluck(:username, :message)
.map { |username, message| "#{username}: #{message}" } .map { |username, message| "#{username}: #{message}" }
.join("\n")
end end
def suggested_title def suggested_title