PERF: Better chat thread content format for LLM (#273)
This commit is contained in:
parent
cbfd8507b1
commit
6f708726e4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue