[PR #2831] [MERGED] Local models should get the tools block #5756

Closed
opened 2026-10-22 04:19:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2831
Author: @Sulphuratum
Created: 6/23/2026
Status: ✅ Merged
Merged: 6/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: staging


📝 Commits (1)

  • f955a64 Local models should get the tools block

📊 Changes

3 files changed (+40 additions, -32 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+11 -29)
📝 packages/server/src/services/llm/provider-registry.ts (+18 -1)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+11 -2)

📄 Description

Linked issue

Closes #2830

Why this change

  • tool body is not sent to local models, as the system checks the list of known models before sending, local models are not on there.

What changed

  • If the Local/Custom Endpoint toggle in the connection is off force the system to send the tool block. The toggle is meant to force textual reasoning so this seemed like a good fit

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Enable tool calling in chat.
  • Check if body gets sent
  • Verify tool call

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

From my llamaswap proxy to verify correctness:

image image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2831 **Author:** [@Sulphuratum](https://github.com/Sulphuratum) **Created:** 6/23/2026 **Status:** ✅ Merged **Merged:** 6/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `staging` --- ### 📝 Commits (1) - [`f955a64`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f955a646c3f6d7e26a69fa763976d1dd955371a0) Local models should get the tools block ### 📊 Changes **3 files changed** (+40 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+11 -29) 📝 `packages/server/src/services/llm/provider-registry.ts` (+18 -1) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+11 -2) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #2830 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - tool body is not sent to local models, as the system checks the list of known models before sending, local models are not on there. ## What changed <!-- List the key changes in this PR --> - If the Local/Custom Endpoint toggle in the connection is off force the system to send the tool block. The toggle is meant to force textual reasoning so this seemed like a good fit ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Enable tool calling in chat. - Check if body gets sent - Verify tool call ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) From my llamaswap proxy to verify correctness: <img width="1298" height="550" alt="image" src="https://github.com/user-attachments/assets/c4bed704-6cdf-4e37-ae46-8e0be5a8edcb" /> <img width="1278" height="442" alt="image" src="https://github.com/user-attachments/assets/27b434cf-2b61-4157-970d-569a5f8f2847" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:19:14 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5756
No description provided.