Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
# frozen_string_literal: true
class DummyCustomSummarization < Summarization::Base
def initialize(summarization_result)
@summarization_result = summarization_result
end
def display_name
"dummy"
def correctly_configured?
true
def configuration_hint
"hint"
def model
def summarize(_content, _user)
@summarization_result.tap { |result| yield(result[:summary]) if block_given? }