UX: Add proper attribution to illustrate post images (#398)
This commit is contained in:
parent
d9c052f8e7
commit
0483e0bb88
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue