Merge branch 'bugfix_ollama' into develop

This commit is contained in:
misyaguziya
2025-11-25 18:43:42 +09:00

View File

@@ -233,7 +233,10 @@ class Translator:
Returns True if Ollama is reachable, False otherwise. Returns True if Ollama is reachable, False otherwise.
""" """
self.ollama_client = OllamaClient(root_path=root_path) self.ollama_client = OllamaClient(root_path=root_path)
return self.ollama_client.authenticationCheck() result = self.ollama_client.authenticationCheck()
if result is False:
self.ollama_client = None
return result
def getOllamaModelList(self, root_path: str = None) -> bool: def getOllamaModelList(self, root_path: str = None) -> bool:
"""Initialize Ollama client and fetch available models. """Initialize Ollama client and fetch available models.