mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #4402] [MERGED] refactor: re-use utils in Ollama #8278
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/4402
Author: @michaelpoluektov
Created: 8/6/2024
Status: ✅ Merged
Merged: 8/11/2024
Merged by: @tjbck
Base:
dev← Head:remove-ollama📝 Commits (10+)
831fe9fcleanup44c781fcleanupfc31267refac: re-use utils.misced205d8fix: popf62281aMerge branch 'dev' of https://github.com/open-webui/open-webui into remove-ollama670f28dMerge branch 'dev' into remove-ollamae6bbce4fix: repeat_penalty8cdf981fix: name differencesa725801fix: formatting test errors, remove print, merge dev309cd64undo del📊 Changes
5 files changed (+139 additions, -320 deletions)
View changed files
📝
backend/apps/images/utils/comfyui.py(+3 -2)📝
backend/apps/ollama/main.py(+84 -309)📝
backend/apps/openai/main.py(+5 -2)📝
backend/apps/webui/main.py(+2 -2)📝
backend/utils/misc.py(+45 -5)📄 Description
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Refactor
apps/ollama/main.pyand utils around it in preparation for tools refactor:== None->is None,except:->except Exception:r = requests.requestoutsidetry:to avoid variable being potentially unboundget_ollama_url()utils.miscfor Ollama completionsapply_model_params_to_bodytoapply_model_params_to_body_openai, addapply_model_params_to_body_ollama.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.