mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #14402] [MERGED] perf: Parallelize base model fetching #23463
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/14402
Author: @torisetxd
Created: 5/27/2025
Status: ✅ Merged
Merged: 5/27/2025
Merged by: @tjbck
Base:
dev← Head:parallelized-model-fetching📝 Commits (2)
27de981Parallelize base model fetching9eccce2Added proper type hints to new functions📊 Changes
1 file changed (+38 additions, -26 deletions)
View changed files
📝
backend/open_webui/utils/models.py(+38 -26)📄 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
get_all_base_modelsby parallelizing model fetching instead of running each fetch separately.Added
fetch_ollama_modelsto fetch and convert ollama models into their specific formatfetch_openai_modelsto fetch and get the 'data' field.asyncioChanged
get_all_base_modelsto run all fetching & conversion in parallel.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.