diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 79a02b35..b9324646 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -128,6 +128,8 @@ en: custom_prompt: "Custom Prompt" explain: "Explain" illustrate_post: "Illustrate Post" + painter: + attribution: "Image by Stable Diffusion XL" ai_bot: personas: diff --git a/lib/ai_helper/painter.rb b/lib/ai_helper/painter.rb index 208d4501..0b1041dd 100644 --- a/lib/ai_helper/painter.rb +++ b/lib/ai_helper/painter.rb @@ -20,7 +20,10 @@ module DiscourseAi f.binmode f.write(Base64.decode64(artifact)) f.rewind - upload = UploadCreator.new(f, "ai_helper_image_#{i}.png").create_for(user.id) + upload = + UploadCreator.new(f, I18n.t("discourse_ai.ai_helper.painter.attribution")).create_for( + user.id, + ) f.unlink UploadSerializer.new(upload, root: false)