mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6248] [Issue]: Gemma 4 tool calls are not executed in 2.4.6 #3488
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#3488
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 @SpicyMarinara on GitHub (Sep 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6248
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Tool calling in RP mode appears broken for a llama-server-hosted Gemma 4-derived model after updating to Marinara Engine 2.4.6. The model emits a literal tool-call block instead of executing the configured tool, and updating to the latest official Gemma 4 Jinja template did not resolve the issue.
Expected behavior
The model should issue a valid tool call that Marinara recognizes and executes for the configured dice tool.
Actual behavior
Thinking stops and the model outputs the literal block
<|tool_call>call:dice_roll{dice_count:1,dice_sides:100}<tool_call|>instead of executing the tool. The configured tool is namedroll_dice, but the emitted call usesdice_roll.Steps to reproduce
roll_dice.Environment
Logs, screenshots, or video
Diagnostic console logs:
[debug] Thinking tokens (622 chars): ... Let's use the tool.and[debug] Token usage — prompt: 12329 completion: 216 visibleCompletion: unknown (provider did not split hidden thinking) reasoning: unreported total: 12545 cached: 0 cacheWrite: N/A finish: stop. No screenshots or video were provided.Additional context
The behavior worked before the update and was tested in both a session created before the update and a fresh session created afterward. Updating the Gemma 4 template did not fix it. The report refers to Marinara's engine backend, not a Marinara-hosted model backend. Support diagnostics and the model or agent version were not provided in the Discord context.
Discord thread: Tool calling broken with Gemma 4 in 2.4.6?
Discord thread link: https://discord.com/channels/1417099416812392641/1549523809843814602
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (9 messages)
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 (Sep 15, 2026):
Solved, the model ws just dumb.