mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 05:05:25 +08:00
22 lines
319 B
Ruby
22 lines
319 B
Ruby
![]() |
# frozen_string_literal: true
|
||
|
|
||
|
class DummyCustomSummarization < Summarization::Base
|
||
|
RESPONSE = "This is a summary of the content you gave me"
|
||
|
|
||
|
def display_name
|
||
|
"dummy"
|
||
|
end
|
||
|
|
||
|
def correctly_configured?
|
||
|
true
|
||
|
end
|
||
|
|
||
|
def configuration_hint
|
||
|
"hint"
|
||
|
end
|
||
|
|
||
|
def summarize(_content)
|
||
|
RESPONSE
|
||
|
end
|
||
|
end
|