mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Point that topic summaries are generated by an AI (#22646)
This commit is contained in:
@@ -1181,7 +1181,12 @@ class TopicsController < ApplicationController
|
||||
|
||||
hijack do
|
||||
summary = TopicSummarization.new(strategy).summarize(topic, current_user)
|
||||
render json: { summary: summary&.summarized_text, summarized_on: summary&.updated_at }
|
||||
|
||||
render json: {
|
||||
summary: summary.summarized_text,
|
||||
summarized_on: summary.updated_at,
|
||||
summarized_by: summary.algorithm,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user