mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-29 19:12:15 +00:00
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"
|
custom_prompt: "Custom Prompt"
|
||||||
explain: "Explain"
|
explain: "Explain"
|
||||||
illustrate_post: "Illustrate Post"
|
illustrate_post: "Illustrate Post"
|
||||||
|
painter:
|
||||||
|
attribution: "Image by Stable Diffusion XL"
|
||||||
|
|
||||||
ai_bot:
|
ai_bot:
|
||||||
personas:
|
personas:
|
||||||
|
@ -20,7 +20,10 @@ module DiscourseAi
|
|||||||
f.binmode
|
f.binmode
|
||||||
f.write(Base64.decode64(artifact))
|
f.write(Base64.decode64(artifact))
|
||||||
f.rewind
|
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
|
f.unlink
|
||||||
|
|
||||||
UploadSerializer.new(upload, root: false)
|
UploadSerializer.new(upload, root: false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user