mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #15527] [MERGED] FIX: Ollama.py API endpoints to match Ollama's #39494
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/15527
Author: @gmacario
Created: 7/4/2025
Status: ✅ Merged
Merged: 7/5/2025
Merged by: @tjbck
Base:
dev← Head:gmacario-fix-api-show📝 Commits (1)
bdd5120fix: rename Ollama API parameter "name" to "model"📊 Changes
1 file changed (+13 additions, -13 deletions)
View changed files
📝
backend/open_webui/routers/ollama.py(+13 -13)📄 Description
Pull Request Checklist
This PR is a fix to bug https://github.com/open-webui/open-webui/issues/15518 which was initially identified on Ollama API Endpoint
POST /ollama/api/show@rgaricano confirmed and reproduced the bug - see https://github.com/open-webui/open-webui/issues/15518#issuecomment-3035368451
Additionally, @rgaricano also discovered that the bug was also affecting the following API endpoint
POST /ollama/api/showbut also:POST /ollama/api/unloadPOST /ollama/api/pull/{url_idx}POST /ollama/api/pullDELETE /ollama/api/push/{url_idx}DELETE /ollama/api/pushDELETE /ollama/api/delete/{url_idx}DELETE /ollama/api/deletePOST /ollama/api/showAccording to Ollama API official documentation, in all those endpoints parameter
namewas renamed tomodelfor consistency.Please refer to https://github.com/ollama/ollama/pull/7731/files for details
This PR has the objective to align the Open Web UI Ollama API Proxy with the official Ollama documentation.
Before submitting, make sure you've checked the following:
devbranch.nameis now calledmodelChangelog Entry
Description
nameinstead ofmodelAdded
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.