[PR #23095] [CLOSED] fix: prevent infinite loop when tool_calls is empty with finish_reason tool_calls #98061

Closed
opened 2026-05-16 00:45:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/23095
Author: @yang1002378395-cmyk
Created: 3/26/2026
Status: Closed

Base: devHead: fix-23066-streaming-loop-2


📝 Commits (1)

  • 11dd417 fix: prevent infinite loop when tool_calls is empty with finish_reason tool_calls

📊 Changes

1 file changed (+14 additions, -2 deletions)

View changed files

📝 backend/open_webui/utils/middleware.py (+14 -2)

📄 Description

Fixes #23066


🔄 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/open-webui/open-webui/pull/23095 **Author:** [@yang1002378395-cmyk](https://github.com/yang1002378395-cmyk) **Created:** 3/26/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix-23066-streaming-loop-2` --- ### 📝 Commits (1) - [`11dd417`](https://github.com/open-webui/open-webui/commit/11dd4170bfeb7d688570a70177194ddf6855f81a) fix: prevent infinite loop when tool_calls is empty with finish_reason tool_calls ### 📊 Changes **1 file changed** (+14 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/middleware.py` (+14 -2) </details> ### 📄 Description Fixes #23066 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-16 00:45:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#98061