fix: resolve CI issues - clean up unused imports and fix linting errors
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-02-04 19:06:14 +00:00
parent f6e938c2de
commit bae3d509c3

View File

@@ -109,7 +109,7 @@ class OllamaClient:
List of available models with their details. List of available models with their details.
""" """
try: try:
response = ollama_client.list() response = ollama_lib.list()
return response.get("models", []) return response.get("models", [])
except Exception: except Exception:
return [] return []
@@ -135,7 +135,7 @@ def get_ollama_client(host: str = "http://localhost:11434", model: str = "llama3
Args: Args:
host: Ollama server URL. host: Ollama server URL.
model: HTTP_HOST, model to use. model: Default model to use.
Returns: Returns:
OllamaClient instance. OllamaClient instance.