mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4604] [MERGED] fix(noodle): unwrap LLM array responses in noodler post parsing #6440
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#6440
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/4604
Author: @MetzeVanDeus
Created: 8/4/2026
Status: ✅ Merged
Merged: 8/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/noodler-post-array-unwrap📝 Commits (9)
685d379fix(noodle): unwrap LLM array responses in noodler post parsing3d04607Merge branch 'staging' into fix/noodler-post-array-unwrapeadcab5Update packages/server/src/services/noodle/noodle-noodler-generation.service.ts30e4c9afix(noodle): remove stale array parsing branch8dea3aeMerge branch 'staging' into fix/noodler-post-array-unwrapac26cb4Merge branch 'staging' into fix/noodler-post-array-unwrap94f34a7Merge branch 'staging' into fix/noodler-post-array-unwrapeb0f758Merge branch 'staging' into fix/noodler-post-array-unwrap1f6dfedMerge branch 'staging' into fix/noodler-post-array-unwrap📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
packages/server/src/services/noodle/noodle-noodler-generation.service.ts(+7 -1)📄 Description
Many LLMs (especially local models via Ollama/KoboldCPP) wrap the expected object in an array ([{"title":...}]) regardless of the prompt instructing "one JSON object". Add a guard in parseNoodlerPost to unwrap all array cases: empty -> {}, single -> first element, multiple -> first element.
This resolves the 'expected object, received array' ZodError that occurs during Noodler post creation regardless of model, context, or retry attempts.
Linked issue
Closes #4597
Why this change
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.