mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-05-19 14:54:42 +00:00
This change makes it easier to add new prompts to our AI helper. We don't have a UI for it yet. You'll have to do it through a console.
18 lines
398 B
Ruby
18 lines
398 B
Ruby
# frozen_string_literal: true
|
|
module DiscourseAi
|
|
module AiHelper
|
|
class EntryPoint
|
|
def load_files
|
|
require_relative "open_ai_prompt"
|
|
end
|
|
|
|
def inject_into(plugin)
|
|
plugin.register_seedfu_fixtures(
|
|
Rails.root.join("plugins", "discourse-ai", "db", "fixtures", "ai-helper"),
|
|
)
|
|
plugin.register_svg_icon("magic")
|
|
end
|
|
end
|
|
end
|
|
end
|