[GH-ISSUE #5836] Avatar Generate with AI prepends a prose lead sentence into Danbooru/tag prompts #3219

Closed
opened 2026-10-21 06:00:44 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @stonebystone on GitHub (Sep 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5836

Originally assigned to: @SpicyMarinara on GitHub.

Problem

The avatar "Generate with AI" path has no prompt-writing LLM. It builds a fixed lead sentence, "Create a polished character avatar portrait for .", and the image prompt compiler keeps that text verbatim because avatar prompts are never compacted.

With a style profile in Danbooru or tag grammar (Illustrious, Pony, NovelAI), that sentence lands inside a comma-separated tag prompt as a prose clause, which those models treat as noise. The profile's avatar subject tags (for example solo, upper body, looking at viewer, centered composition) already state the composition, so the sentence adds nothing.

Example prompt observed on a NovelAI V5 connection with a Danbooru profile:

..., solo, upper body, looking at viewer, facing viewer, centered composition, Create a polished character avatar portrait for Delaney Rhodes, 1girl, delaney rhodes, olive skin, ...

Proposal

  • For Danbooru and tag grammars, emit no lead sentence when the profile has avatar subject tags, and a tag-only composition fallback when it has none.
  • Leave natural and hybrid grammars exactly as they are.
  • Character sheets are unaffected (they use their own prompt template).

Owner: @stonebystone (implemented with Claude Code).

Originally created by @stonebystone on GitHub (Sep 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5836 Originally assigned to: @SpicyMarinara on GitHub. ## Problem The avatar "Generate with AI" path has no prompt-writing LLM. It builds a fixed lead sentence, "Create a polished character avatar portrait for <name>.", and the image prompt compiler keeps that text verbatim because avatar prompts are never compacted. With a style profile in Danbooru or tag grammar (Illustrious, Pony, NovelAI), that sentence lands inside a comma-separated tag prompt as a prose clause, which those models treat as noise. The profile's avatar subject tags (for example `solo, upper body, looking at viewer, centered composition`) already state the composition, so the sentence adds nothing. Example prompt observed on a NovelAI V5 connection with a Danbooru profile: ``` ..., solo, upper body, looking at viewer, facing viewer, centered composition, Create a polished character avatar portrait for Delaney Rhodes, 1girl, delaney rhodes, olive skin, ... ``` ## Proposal - For Danbooru and tag grammars, emit no lead sentence when the profile has avatar subject tags, and a tag-only composition fallback when it has none. - Leave natural and hybrid grammars exactly as they are. - Character sheets are unaffected (they use their own prompt template). Owner: @stonebystone (implemented with Claude Code).
bsakaguchi 2026-10-21 06:00:44 +07:00
Author
Owner

@kolacheee commented on GitHub (Sep 4, 2026):

Please see https://github.com/Pasta-Devs/Marinara-Engine/issues/5779

It will probably take us a couple days to clone and merge your PR, just a heads up.

<!-- gh-comment-id:5541774896 --> @kolacheee commented on GitHub (Sep 4, 2026): Please see https://github.com/Pasta-Devs/Marinara-Engine/issues/5779 It will probably take us a couple days to clone and merge your PR, just a heads up.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Owner: @SpicyMarinara (Codex). The maintainer has requested that this issue be completed in the assigned issue sweep, tracked in draft PR #6072. Existing contributor patches and previously completed translations will be reviewed and reused with attribution; the final PR will document the implementation and verification before this issue is closed.

<!-- gh-comment-id:5644876245 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Owner: @SpicyMarinara (Codex). The maintainer has requested that this issue be completed in the assigned issue sweep, tracked in draft PR #6072. Existing contributor patches and previously completed translations will be reviewed and reused with attribution; the final PR will document the implementation and verification before this issue is closed.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Fixed in #6072, merged into staging.

Avatar prompt preview and generation now reuse the selected profile’s tag composition without adding a prose portrait lead for tag/Danbooru profiles. Natural-language profiles retain their existing lead. Regression checks cover both formats; contributor work from #5837 is preserved and credited.

<!-- gh-comment-id:5645734458 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Fixed in #6072, merged into `staging`. Avatar prompt preview and generation now reuse the selected profile’s tag composition without adding a prose portrait lead for tag/Danbooru profiles. Natural-language profiles retain their existing lead. Regression checks cover both formats; contributor work from #5837 is preserved and credited.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3219
No description provided.