2023-03-15 17:02:20 -03:00
|
|
|
# frozen_string_literal: true
|
|
|
|
module DiscourseAi
|
|
|
|
module AiHelper
|
|
|
|
class EntryPoint
|
|
|
|
def load_files
|
2023-04-10 11:04:42 -03:00
|
|
|
require_relative "llm_prompt"
|
2023-09-01 21:10:58 -03:00
|
|
|
require_relative "semantic_categorizer"
|
2023-03-15 17:02:20 -03:00
|
|
|
end
|
|
|
|
|
|
|
|
def inject_into(plugin)
|
2023-03-17 15:14:19 -03:00
|
|
|
plugin.register_seedfu_fixtures(
|
2023-05-05 15:28:31 -03:00
|
|
|
Rails.root.join("plugins", "discourse-ai", "db", "fixtures", "ai_helper"),
|
2023-03-17 15:14:19 -03:00
|
|
|
)
|
2023-04-20 23:11:24 +08:00
|
|
|
plugin.register_svg_icon("discourse-sparkles")
|
2023-03-15 17:02:20 -03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|