mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8576] [MERGED] fix(llm): preserve requested tools for uncatalogued models #8684
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#8684
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/8576
Author: @ylli-selmani
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ylli-selmani
Base:
staging← Head:fix/mari-provider-tools📝 Commits (2)
011580cfix(llm): preserve requested tools for uncatalogued models7924a53fix(llm): retain textual tool mode for Google completions📊 Changes
4 files changed (+164 additions, -38 deletions)
View changed files
📝
packages/server/src/services/llm/provider-registry.ts(+2 -9)📝
packages/server/src/services/llm/providers/google.provider.ts(+25 -17)📝
packages/server/src/services/llm/providers/openai.provider.ts(+7 -12)➕
scripts/regressions/provider-unknown-model-tools.regression.ts(+130 -0)📄 Description
Linked issue
Part of #8564. The reporter's exact provider/model combination and the cause of every reported refusal remain unconfirmed.
Why this change
Professor Mari and other tool callers can request tools but receive an ordinary text answer because an uncatalogued model silently loses its tool definitions. The model catalog's compatibility guard should suppress optional sampling parameters without removing the requested tool protocol.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdEvidence:
pnpm checkpassed (exit 0; existing client hook/build warnings). The new regression failed before the fix on the missing OpenAI tools payload and passed afterward. Selected provider regressions: six passed on the first run; provider-compat caught changed Google JSON key order, which was restored and then passed on rerun.Final verification:
node scripts/run-regressions.mjs --filter provider- --concurrency 2passed 7/7 after the review fix (exit 0).Local CodeRabbit ran on the whole change and again on the substantive review fix. One finding fixed: Google must honor explicit textual-tool mode. Three findings declined after tracing code:
chat()has a text/usage contract (tool callers use the testedchatComplete()); Google base text-path debug logging was already absent; and no production caller requests Google textual parsing (the flag is set only by the OpenAI sidecar, while Mari parses textual replies upstream). No claim of zero findings.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedNo release metadata or user-facing documentation changes.
UI evidence (if applicable)
Not applicable; provider request shaping only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.