mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #615] [MERGED] Fix NovelAI V4 native prompt input #4696
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#4696
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/615
Author: @cha1latte
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @cha1latte
Base:
main← Head:fix/issue-587-novelai-v4📝 Commits (1)
1ff658fFix NovelAI V4 native prompt input📊 Changes
2 files changed (+60 additions, -2 deletions)
View changed files
📝
packages/server/src/services/image/image-generation.ts(+1 -1)📝
packages/server/test/image-generation-local.test.ts(+59 -1)📄 Description
Linked issue
Closes #587
Why this change
input, which can make NovelAI return a 500 even though V3 requests succeed.What changed
inputfor V4/V4.5 requests while preserving the existingv4_promptandv4_negative_promptparameters.input.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
node scratch\issue-587-novelai-v4-repro.mjsbefore the fix: the mock native NovelAI endpoint rejected the V4.5 request becauseinputwas""and returnedNovelAI image generation failed (500): {"statusCode":500,"message":"Internal Server Error"}.node scratch\issue-587-novelai-v4-repro.mjsafter the fix: the same V4.5 flow succeeded withinput: "cat cafe"andhasV4Prompt: true.pnpm --filter @marinara-engine/server exec tsx --test test/image-generation-local.test.ts; all 3 focused image-generation tests passed, including V4.5 payload metadata and V3 prompt-shape coverage.pnpm check; it passed.Docs and release impact
No docs or release metadata changes are needed for this backend request payload fix.
UI evidence (if applicable)
N/A. This is a backend/provider request-building fix with command-level before/after proof.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.