UX: Add proper attribution to illustrate post images (#398)

This commit is contained in:
Keegan George 2024-01-03 13:01:19 -08:00 committed by GitHub
parent d9c052f8e7
commit 0483e0bb88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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)