Files
discourse-ai/lib/modules/ai_helper/entry_point.rb
T
0e5764617a FEATURE: AI helper on posts (#244)
Adds an AI Helper function when selecting text while viewing a topic.

---------

Co-authored-by: Keegan George <[email protected]>
Co-authored-by: Roman Rizzi <[email protected]>
2023-10-23 11:41:36 -03:00

23 lines
600 B
Ruby

# frozen_string_literal: true
module DiscourseAi
module AiHelper
class EntryPoint
def load_files
require_relative "llm_prompt"
require_relative "semantic_categorizer"
require_relative "painter"
require_relative "topic_helper"
end
def inject_into(plugin)
plugin.register_seedfu_fixtures(
Rails.root.join("plugins", "discourse-ai", "db", "fixtures", "ai_helper"),
)
additional_icons = %w[spell-check language]
additional_icons.each { |icon| plugin.register_svg_icon(icon) }
end
end
end
end