discourse-ai/lib/personas/custom_prompt.rb
Roman Rizzi 0338dbea23 FEATURE: Use different personas to power AI helper features.
You can now edit each AI helper prompt individually through personas, limit access to specific groups, set different LLMs, etc.
2025-06-04 14:23:00 -03:00

23 lines
495 B
Ruby

# frozen_string_literal: true
module DiscourseAi
module Personas
class CustomPrompt < Persona
def self.default_enabled
false
end
def system_prompt
<<~PROMPT.strip
You are a helpful assistant. I will give you instructions inside <input></input> XML tags.
You will look at them and reply with a result.
PROMPT
end
def response_format
[{ "key" => "output", "type" => "string" }]
end
end
end
end