mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3317] [Issue]: Memory recall failure #1797
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#1797
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 @Dinokin on GitHub (Jul 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3317
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Memory Recall fails silently when a chunk surpass a certain size.
Expected behavior
Create the memories.
Actual behavior
No memory is created.
Steps to reproduce
Environment
Logs, screenshots, or video
{ "level": 40, "time": 1783376092721, "pid": 13, "hostname": "PI-5", "err": { "type": "Error", "message": "Embedding request failed (400): Input 34 is too large for model text-embedding-3-small: estimated 8677 tokens, maximum is 8191.", "stack": "Error: Embedding request failed (400): Input 34 is too large for model text-embedding-3-small: estimated 8677 tokens, maximum is 8191.\n at OpenAIProvider.embed (file:///app/packages/server/dist/services/llm/base-provider.js:489:19)\n at async Object.embed (file:///app/packages/server/dist/services/memory-recall-embedding.js:110:24)\n at async embedMemoryRecallTexts (file:///app/packages/server/dist/services/memory-recall.js:48:38)\n at async chunkAndEmbedMessages (file:///app/packages/server/dist/services/memory-recall.js:181:24)\n at async rebuildMemoryChunks (file:///app/packages/server/dist/services/memory-recall.js:222:5)\n at async Object.<anonymous> (file:///app/packages/server/dist/routes/chats.routes.js:1312:25)" }, "msg": "[memory-recall] Configured embedding source NanoGPT - Embed (text-embedding-3-small) failed" }Additional context
The error message makes the cause of the issue quite obvious, I think a valid fix would be something like this.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 7, 2026):
Codex is picking this up for the v2.1.1 issue sweep in draft PR #3331.
@SpicyMarinara commented on GitHub (Jul 7, 2026):
Fixed in PR #3331 and merged to staging for v2.1.1. Thank you for the report.