入れ込み忘れを修正

This commit is contained in:
misyaguziya
2025-11-25 18:43:16 +09:00
parent e89da88c19
commit ea4863f195

View File

@@ -233,7 +233,10 @@ class Translator:
Returns True if Ollama is reachable, False otherwise.
"""
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:
"""Initialize Ollama client and fetch available models.