mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: Stream topic summaries. (#23065)
When we receive the stream parameter, we'll queue a job that periodically publishes partial updates, and after the summarization finishes, a final one with the completed version, plus metadata. `summary-box` listens to these updates via MessageBus, and updates state accordingly.
This commit is contained in:
@ -22,6 +22,6 @@ class DummyCustomSummarization < Summarization::Base
|
||||
end
|
||||
|
||||
def summarize(_content)
|
||||
@summarization_result
|
||||
@summarization_result.tap { |result| yield(result[:summary]) if block_given? }
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user