[PR #24968] [CLOSED] fix: avoid empty prompt for skill-only messages #131619

Closed
opened 2026-05-21 17:19:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24968
Author: @pragnyanramtha
Created: 5/20/2026
Status: Closed

Base: devHead: pragnyan/fix-empty-skill-only-message-24929


📝 Commits (1)

  • 01e2ef4 fix: avoid empty prompt for skill-only messages

📊 Changes

1 file changed (+35 additions, -15 deletions)

View changed files

📝 backend/open_webui/utils/middleware.py (+35 -15)

📄 Description

Summary

  • add a backend fallback prompt for active user-selected skills when the stripped user message is blank
  • keep skill mention markup hidden from the model while avoiding empty user content sent to strict providers
  • leave normal prompts, image-only prompts, inactive/unavailable skills, and model-attached skill descriptions unchanged

Closes #24929.

Validation

  • python3 -m py_compile backend/open_webui/utils/middleware.py
  • uvx ruff format --check backend/open_webui/utils/middleware.py
  • git diff --check

🔄 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/24968 **Author:** [@pragnyanramtha](https://github.com/pragnyanramtha) **Created:** 5/20/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `pragnyan/fix-empty-skill-only-message-24929` --- ### 📝 Commits (1) - [`01e2ef4`](https://github.com/open-webui/open-webui/commit/01e2ef48e810069bf5f735f6f9fdfc87dfb0f714) fix: avoid empty prompt for skill-only messages ### 📊 Changes **1 file changed** (+35 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/middleware.py` (+35 -15) </details> ### 📄 Description ## Summary - add a backend fallback prompt for active user-selected skills when the stripped user message is blank - keep skill mention markup hidden from the model while avoiding empty user content sent to strict providers - leave normal prompts, image-only prompts, inactive/unavailable skills, and model-attached skill descriptions unchanged Closes #24929. ## Validation - `python3 -m py_compile backend/open_webui/utils/middleware.py` - `uvx ruff format --check backend/open_webui/utils/middleware.py` - `git diff --check` --- <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-21 17:19:28 -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#131619