mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5709] [MERGED] fix: support NanoGPT embeddings and reasoning controls #6896
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#6896
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/5709
Author: @Gunterlie
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @Gunterlie
Base:
staging← Head:vector-identity-lost📝 Commits (1)
2bbde51fix: support NanoGPT embeddings and reasoning controls📊 Changes
4 files changed (+94 additions, -4 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/services/llm/base-provider.ts(+8 -4)📝
packages/server/src/services/llm/providers/openai.provider.ts(+15 -0)📝
scripts/regressions/provider-compat.regression.ts(+69 -0)📄 Description
$## Summary\n\nFixes NanoGPT lorebook vectorization and agent reasoning controls.\n\n## Why\n\nNanoGPT embedding requests require
x-api-key, while the shared embedding path sent only a Bearer header. Agent requests also need an explicitreasoning_effort: "none"when reasoning is disabled. GLM 5.3 Flash remains an exception because NanoGPT requires reasoning for that model.\n\n## Changes\n\n- Sendx-api-keyon NanoGPT embedding requests.\n- Sendreasoning_effort: "none"for explicit NanoGPT reasoning-off requests.\n- Preserveenable_thinking: truefor NanoGPT GLM 5.3 Flash.\n- Add provider regression coverage.\n\nFixes #5688\nFixes #5582\n\n## Verification\n\n-pnpm install\n-pnpm format:check\n-pnpm build:shared && node ./scripts/run-regressions.mjs --filter scripts/regressions/provider-compat.regression.ts\n-pnpm check\n\n## Manual verification\n\n- Manually verify lorebook vectorization with a NanoGPT embedding model.\n- Manually verify an agent with a NanoGPT non-reasoning model.\n- Manually verify NanoGPT GLM 5.3 Flash still sends mandatory reasoning.\nSummary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.