mirror of
				https://github.com/discourse/discourse-ai.git
				synced 2025-10-31 14:38:37 +00:00 
			
		
		
		
	This module lets you chat with our GPT bot inside a PM. The bot only replies to members of the groups listed on the ai_bot_allowed_groups setting and only if you invite it to participate in the PM.
		
			
				
	
	
		
			18 lines
		
	
	
		
			407 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			407 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| module DiscourseAi
 | |
|   module AiHelper
 | |
|     class EntryPoint
 | |
|       def load_files
 | |
|         require_relative "llm_prompt"
 | |
|       end
 | |
| 
 | |
|       def inject_into(plugin)
 | |
|         plugin.register_seedfu_fixtures(
 | |
|           Rails.root.join("plugins", "discourse-ai", "db", "fixtures", "ai_helper"),
 | |
|         )
 | |
|         plugin.register_svg_icon("discourse-sparkles")
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |