mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-16 16:34:45 +00:00
This allows summary to use the new LLM models and migrates of API key based model selection Claude 3.5 etc... all work now. --------- Co-authored-by: Roman Rizzi <rizziromanalejandro@gmail.com>
13 lines
346 B
Ruby
13 lines
346 B
Ruby
# frozen_string_literal: true
|
|
module DiscourseAi
|
|
module Summarization
|
|
def self.default_strategy
|
|
if SiteSetting.ai_summarization_model.present? && SiteSetting.ai_summarization_enabled
|
|
DiscourseAi::Summarization::Strategies::FoldContent.new(SiteSetting.ai_summarization_model)
|
|
else
|
|
nil
|
|
end
|
|
end
|
|
end
|
|
end
|