mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2122] [Issue]: Illustrator "Send avatars as reference images" silently does nothing on NovelAI V4.5 (uses V3 Vibe Transfer fields) #1035
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1035
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jswen4-tech on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2122
Originally assigned to: @cha1latte on GitHub.
Summary
The Illustrator option "Send character & persona avatars as reference images" has no effect when the image connection is NovelAI using a V4.5 model (nai-diffusion-4-5-full). Avatars are uploaded and the checkbox is enabled, but the reference images are silently dropped: the generated images show no reference influence, and no extra Anlas is consumed (V4.5 reference methods both cost Anlas, so zero extra cost confirms nothing is being sent/encoded).
The root cause is that the NovelAI request builder sends the old V3 Vibe Transfer API fields, which V4.5 models do not consume.
Environment
Marinara Engine version: v1.6.1 (please confirm against your build)
OS: Windows
Image provider: NovelAI (https://image.novelai.net)
Model: NAI Diffusion 4.5 Full (nai-diffusion-4-5-full)
Illustrator image connection: NovelAI connection set as the agent's image connection
Sampler/steps/guidance: Euler Ancestral (k_euler_ancestral) / karras / 28 / 6 (unrelated, just for completeness)
Steps to reproduce
Configure a NovelAI image connection with model nai-diffusion-4-5-full.
Set a real image avatar on the persona and on the in-scene character cards.
In the Illustrator agent, enable "Send character & persona avatars as reference images."
Trigger an Illustrator image generation in a chat.
Expected
The persona/character avatars are sent to NovelAI as references (Vibe Transfer or Precise Reference), influencing the output, and the corresponding Anlas cost is incurred (V4+ vibe-encode is billed; Precise Reference adds cost per image).
Actual
No reference influence on the generated image.
No additional Anlas is consumed beyond the base generation, indicating the reference data never reaches NovelAI in a form V4.5 accepts.
Root cause
packages/server/src/services/image/image-generation.ts, NovelAI branch (approximately lines 1187–1196):
tsif (request.referenceImage) {
parameters.reference_image_multiple = [request.referenceImage];
} else if (request.referenceImages?.length) {
parameters.reference_image_multiple = request.referenceImages;
parameters.reference_information_extracted_multiple = request.referenceImages.map(() => 1);
parameters.reference_strength_multiple = request.referenceImages.map(() => 0.6);
} else {
parameters.reference_image_multiple = [];
}
Two issues:
V3 API fields against a V4.5 model. reference_image_multiple / reference_information_extracted_multiple / reference_strength_multiple are the V3-era Vibe Transfer parameters. V4.5 models do not consume raw reference images through these fields. V4/V4.5 require either:
encoding each image into a vibe first (the vibe-encode step, which is what incurs the Anlas charge) and passing the encoded vibe, or
using the V4.5 Precise Reference parameters.
Passing raw base64 in reference_image_multiple to a V4.5 model appears to be silently ignored.
Single-image branch is also malformed. When only one avatar is present, execution takes the request.referenceImage branch, which sets reference_image_multiple but not the *_information_extracted_multiple / *_strength_multiple arrays — so even against V3 it would be incomplete.
Notes / what is NOT broken
The upstream plumbing looks correct — the avatars are gathered and passed down to the image service. For example, the Illustrator route forwards them:
packages/server/src/routes/generate.routes.ts:9548 → referenceImages: illustratorRefImages
So the break is isolated to the final NovelAI request assembly in image-generation.ts, not to avatar collection or the agent wiring.
Suggested direction (for maintainers to confirm)
Update the NovelAI branch to use the current V4.5 reference pipeline rather than the V3 fields — i.e. encode images via NovelAI's vibe-encode endpoint and attach the resulting vibe(s), and/or implement the V4.5 Precise Reference parameters, gated on whether the selected model is a V4/V4.5 model. The exact current field names and endpoint should be confirmed against NovelAI's V4.5 image API, since this report is based on observed behavior plus the V3-vs-V4.5 reference-API change rather than the current request spec.
Workaround
Until fixed, references work when applied manually in the NovelAI web UI (Precise Reference / Vibe Transfer); they cannot currently be driven through the Illustrator on V4.5.