From 3eade21b9f991646a5b97f32a54d1cdd7b3c828c Mon Sep 17 00:00:00 2001 From: tcsenpai Date: Fri, 23 May 2025 11:33:14 +0200 Subject: [PATCH] quickfix --- ollama_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ollama_handler.py b/ollama_handler.py index 10a4223..3cc3efc 100644 --- a/ollama_handler.py +++ b/ollama_handler.py @@ -49,7 +49,8 @@ class OllamaHandler: """Get list of available Ollama models.""" try: models = self.client.list() - model_names = [model["name"] for model in models["models"]] + # The response structure is different, models are directly in the response + model_names = [model["model"] for model in models["models"]] logger.info(f"Found {len(model_names)} available models") return model_names except Exception as e: