mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #24780] refactor: remove unused GET /prompts/id/{id}/history/diff endpoint #98875
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/24780
Author: @Classic298
Created: 5/15/2026
Status: 🔄 Open
Base:
dev← Head:remove-unused-prompt-diff-endpoint📝 Commits (1)
76200c8refactor: remove unused GET /prompts/id/{id}/history/diff endpoint📊 Changes
2 files changed (+0 additions, -90 deletions)
View changed files
📝
backend/open_webui/routers/prompts.py(+0 -44)📝
src/lib/apis/prompts/index.ts(+0 -46)📄 Description
The version-diff endpoint's only frontend wrapper, getPromptDiff in src/lib/apis/prompts/index.ts, is dead: nothing imports or calls it, the path appears nowhere else in the repo, and the route handler has no internal caller. Removes the route handler, the dead getPromptDiff wrapper, and its now-orphaned local PromptDiff type. Shared helpers (Prompts.get_prompt_by_id, PromptHistories.compute_diff, AccessGrants) are untouched.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.