mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-12 00:53:27 +00:00
20 lines
358 B
Ruby
20 lines
358 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module DiscourseAi
|
||
|
module Personas
|
||
|
class ImageCaptioner < Persona
|
||
|
def self.default_enabled
|
||
|
false
|
||
|
end
|
||
|
|
||
|
def system_prompt
|
||
|
"You are a bot specializing in image captioning."
|
||
|
end
|
||
|
|
||
|
def response_format
|
||
|
[{ "key" => "output", "type" => "string" }]
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|