From 235287397be8cb0238e90072ece0b75bd14592b0 Mon Sep 17 00:00:00 2001 From: Mike Levin Date: Wed, 13 May 2026 09:51:45 -0400 Subject: [PATCH] And here's the last diff to alphabetize the Ollama local AI list in config --- apps/015_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/015_config.py b/apps/015_config.py index e2c8ea8f..ce18d041 100644 --- a/apps/015_config.py +++ b/apps/015_config.py @@ -777,6 +777,9 @@ async def step_02(self, request): if not local_models: # Fallback to Config Preferences local_models = [m.strip() for m in config.PREFERRED_LOCAL_MODELS.split(',')] + + # 🔤 Alphabetize the models for a clean UI experience + local_models = sorted(local_models, key=lambda x: x.lower()) if display_value not in local_models: # Guarantee a valid selection to prevent empty form submissions that break the HTMX cascade