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