[PR #2854] [MERGED] Don't turn off streaming by default if tool calling is enabled #5769

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

📋 Pull Request Information

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

Base: staging ← Head: fix-streaming


📝 Commits (3)

  • 722dae9 Don't turn off streaming by default if tool calling is enabled
  • 5d351c1 Merge branch 'staging' into fix-streaming
  • df9ab52 Merge branch 'staging' into fix-streaming

📊 Changes

1 file changed (+1 additions, -4 deletions)

View changed files

📝 packages/server/src/services/llm/providers/openai.provider.ts (+1 -4)

📄 Description

Linked issue

Closes #2853

Why this change

  • I've not found models that don't work with tool calling and streaming enabled

What changed

  • Remove the boolean that stops streaming when tools are enabled

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

  • Opened an RP
  • Triggered a response that called for a tool call
  • Got response correctly

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)

grafik with my local model grafik with GLM 5 on NanoGPT (yay, natty 20)

Summary by CodeRabbit

  • Bug Fixes
    • Streaming now works more consistently for AI requests that use tools.
    • If token callbacks are provided, responses can stream by default unless streaming is explicitly turned off.

🔄 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/2854 **Author:** [@Sulphuratum](https://github.com/Sulphuratum) **Created:** 6/24/2026 **Status:** ✅ Merged **Merged:** 6/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix-streaming` --- ### 📝 Commits (3) - [`722dae9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/722dae9dcad7ceb2a3e0778e27b383dcdb202926) Don't turn off streaming by default if tool calling is enabled - [`5d351c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5d351c1b76b41dc0fdbc2902c636ca1d3d56193e) Merge branch 'staging' into fix-streaming - [`df9ab52`](https://github.com/Pasta-Devs/Marinara-Engine/commit/df9ab5247d80f6b7512e229c1d39cb8b6cc771e2) Merge branch 'staging' into fix-streaming ### 📊 Changes **1 file changed** (+1 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+1 -4) </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 #2853 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - I've not found models that don't work with tool calling and streaming enabled ## What changed <!-- List the key changes in this PR --> - Remove the boolean that stops streaming when tools are enabled ## 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 <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Opened an RP - Triggered a response that called for a tool call - Got response correctly ## 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) <img width="1308" height="254" alt="grafik" src="https://github.com/user-attachments/assets/2a552f65-84e2-4e7e-917b-1ddec9ae9342" /> with my local model <img width="811" height="494" alt="grafik" src="https://github.com/user-attachments/assets/b63cd3cf-6267-4e01-9337-a02798255812" /> with GLM 5 on NanoGPT (yay, natty 20) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Streaming now works more consistently for AI requests that use tools. * If token callbacks are provided, responses can stream by default unless streaming is explicitly turned off. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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:20 +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#5769
No description provided.