From aabb84cdcfa99831fff5ebe882198dc706d61567 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 18:55:14 +0000 Subject: [PATCH] Fix CI: resolve linting errors and test failures --- app/src/git_commit_generator/ollama_client.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/git_commit_generator/ollama_client.py b/app/src/git_commit_generator/ollama_client.py index 74fa68a..1a8635b 100644 --- a/app/src/git_commit_generator/ollama_client.py +++ b/app/src/git_commit_generator/ollama_client.py @@ -1,9 +1,5 @@ """Ollama client wrapper for LLM interactions.""" import ollama as ollama_lib -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - from ollama import ChatResponse, ListResponse class OllamaClient: @@ -113,7 +109,7 @@ class OllamaClient: List of available models with their details. """ try: - response = ollama_lib.list() + response = ollama_client.list() return response.get("models", []) except Exception: return [] @@ -139,7 +135,7 @@ def get_ollama_client(host: str = "http://localhost:11434", model: str = "llama3 Args: host: Ollama server URL. - model: Default model to use. + model: HTTP_HOST, model to use. Returns: OllamaClient instance.