From 97a88c632efa22bad5460faa45efa3b2fc37d1f1 Mon Sep 17 00:00:00 2001 From: Som-anon <106993652+Som-anon@users.noreply.github.com> Date: Thu, 13 Aug 2026 17:26:30 +0200 Subject: [PATCH 1/2] Update webui.py Prevent duplicates in the model list. The webui has problems rendering model lists if there are duplicates --- channels/webui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channels/webui.py b/channels/webui.py index 293e3203..efeb8911 100644 --- a/channels/webui.py +++ b/channels/webui.py @@ -584,6 +584,8 @@ async def check_connection(): async def models_get(): """Returns a list of all available AI models""" result = await channel.manager.API.list_models() + result = list(set(result)) + if isinstance(result, core.api.APIError): return api_result(str(result), success=False) From e966e6cb521c2807c8e92a8545a836d32dca96d5 Mon Sep 17 00:00:00 2001 From: Som-anon <106993652+Som-anon@users.noreply.github.com> Date: Thu, 13 Aug 2026 17:45:09 +0200 Subject: [PATCH 2/2] Update webui.py Forgot to add sort so that the list has an actual order --- channels/webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/webui.py b/channels/webui.py index efeb8911..dfad850a 100644 --- a/channels/webui.py +++ b/channels/webui.py @@ -584,7 +584,7 @@ async def check_connection(): async def models_get(): """Returns a list of all available AI models""" result = await channel.manager.API.list_models() - result = list(set(result)) + result = sorted(list(set(result))) if isinstance(result, core.api.APIError): return api_result(str(result), success=False)