mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #17158] [MERGED] perf: fix cache key generation for model list caching #127994
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/17158
Author: @sihyeonn
Created: 9/2/2025
Status: ✅ Merged
Merged: 9/3/2025
Merged by: @tjbck
Base:
dev← Head:fix/sh-cache📝 Commits (1)
3ccbb46perf: fix cache key generation for model list caching📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
backend/open_webui/routers/ollama.py(+1 -1)📝
backend/open_webui/routers/openai.py(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Changed
get_all_modelsfunctions for both Ollama and OpenAI routersf"{provider}_all_models_{user.id}"format instead of Request-based keysFixed
Additional Information
backend/open_webui/routers/ollama.py(line 343)backend/open_webui/routers/openai.py(line 404){provider}_all_models_{user_id}for authenticated users,{provider}_all_modelsfor anonymous usersMODELS_CACHE_TTLconfigurationContributor 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.