Skip to content

Commit 7be52e4

Browse files
committed
[feat] display dialog if ollama is offline
1 parent 815ccdc commit 7be52e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Editor/OllamaSupportWindow.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ private void OnEnable()
2929
ollama = new OllamaSupport();
3030
logo = Resources.Load<Texture2D>("Visuals/ollama_x_neocortex");
3131
ollama.CheckOllamaInstallation();
32+
ollama.CheckOllamaRunning();
3233
ollama.CheckInstalledModels();
3334
ollama.SetPlatformDependedStrings();
35+
36+
if (!ollama.IsOllamaRunning)
37+
{
38+
EditorUtility.DisplayDialog("Ollama Not Running", "Ollama is not running. Please start Ollama and try again.", "OK");
39+
}
3440
}
3541

3642
private void OnGUI()

0 commit comments

Comments
 (0)