mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[GH-ISSUE #9664] Deleting Ollama API entry causes model IDs to shift to the next entry #15604
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?
Originally created by @bannert1337 on GitHub (Feb 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9664
Environment
Open WebUI Version: v0.5.10
Ollama (if applicable): 0.5.7
Operating System: Linux
Browser (if applicable): Firefox 135.0.0
Confirmation:
Expected Behavior:
If multiple connections are configured and one connection is removed, the remaining connections move up one position. All details belonging to the deleted connection should be removed and subsequent connections should correctly maintain their associated data.
Actual Behavior:
When deleting an entry under Ollama API, the
Key,Prefix, andModel IDsfrom the deleted entry override the entries of the connection that moves up to replace it. This results in incorrect model ID associations for the remaining connections.Steps to Reproduce
Key,Prefix, andModel IDspreviously associated with the deleted connection are now associated with the connection that moved up.Additional Information
This issue is similar to a previously reported bug where model IDs were not being correctly updated after deleting a connection (#8818). This can lead to security and functionality problems, as connections may be granted access to models they were not intended to use.
@tjbck commented on GitHub (Feb 8, 2025):
Good catch, fixed with 425a8a91788e40d766f16cc9c85b43330e061a49!