[PR #19209] [CLOSED] fix: prefix bug not occuring anymore for Ollama models #40763

Closed
opened 2026-04-25 13:12:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/19209
Author: @vmesel
Created: 11/16/2025
Status: Closed

Base: devHead: fix/19194-prefix-bug


📝 Commits (1)

  • 4bb7690 fix: prefix bug not occuring anymore for Ollama models

📊 Changes

3 files changed (+10 additions, -1 deletions)

View changed files

📝 backend/open_webui/routers/ollama.py (+6 -0)
📝 backend/open_webui/routers/openai.py (+3 -0)
📝 backend/open_webui/utils/models.py (+1 -1)

📄 Description

Changelog Entry

Description

Fixed a bug that occured on ollama models when prefix was missing. It was due to a wrong mapping inside the dictionary for models.

Fixed

  • Implemented a fallback for the model name and prefix option

Screenshots or Videos

image image image

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.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 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/19209 **Author:** [@vmesel](https://github.com/vmesel) **Created:** 11/16/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/19194-prefix-bug` --- ### 📝 Commits (1) - [`4bb7690`](https://github.com/open-webui/open-webui/commit/4bb769097b5d5436b4c0fd1a02dea5d66f0ef478) fix: prefix bug not occuring anymore for Ollama models ### 📊 Changes **3 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/ollama.py` (+6 -0) 📝 `backend/open_webui/routers/openai.py` (+3 -0) 📝 `backend/open_webui/utils/models.py` (+1 -1) </details> ### 📄 Description # Changelog Entry ### Description Fixed a bug that occured on ollama models when prefix was missing. It was due to a wrong mapping inside the dictionary for models. ### Fixed - Implemented a fallback for the model name and prefix option ### Screenshots or Videos <img width="1134" height="654" alt="image" src="https://github.com/user-attachments/assets/190c152b-33e7-46eb-8d0a-c9c27aecb365" /> <img width="1244" height="759" alt="image" src="https://github.com/user-attachments/assets/4981d933-abf6-43b5-bf9b-11b2c8c87948" /> <img width="539" height="491" alt="image" src="https://github.com/user-attachments/assets/55f57e51-b8f9-4097-ac40-19ddeaf06585" /> ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <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-04-25 13:12:42 -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#40763