mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #24782] [MERGED] refactor: remove unused GET /prompts/command/{command} endpoint #131505
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24782
Author: @Classic298
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/19/2026
Merged by: @tjbck
Base:
dev← Head:remove-unused-prompt-command-endpoint📝 Commits (1)
c909db0refactor: remove unused GET /prompts/command/{command} endpoint📊 Changes
2 files changed (+0 additions, -78 deletions)
View changed files
📝
backend/open_webui/routers/prompts.py(+0 -44)📝
src/lib/apis/prompts/index.ts(+0 -34)📄 Description
The lookup-prompt-by-command endpoint's only frontend wrapper, getPromptByCommand, is dead: nothing imports or calls it, the path is referenced nowhere else, and the route handler has no internal caller (slash-command resolution happens client-side from the loaded prompt list). Removes the route handler, its section header, and the dead wrapper.
The shared Prompts.get_prompt_by_command data-layer method is kept: it is still used by create/update prompt validation (prompts.py:175, 275, 340). PromptAccessResponse and AccessGrants are untouched.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.