OllamaInterface/OllamaClient.py

changeset 34
2b3ed778af64
parent 21
22245a10b118
child 37
c0a8df8530ab
diff -r acc362920670 -r 2b3ed778af64 OllamaInterface/OllamaClient.py
--- a/OllamaInterface/OllamaClient.py	Sat Sep 07 18:31:41 2024 +0200
+++ b/OllamaInterface/OllamaClient.py	Sat Sep 07 18:32:20 2024 +0200
@@ -339,6 +339,9 @@
         """
         with contextlib.suppress(KeyError):
             self.serverVersion.emit(response["version"])
+            if self.__plugin.getPreferences("OllamaHeartbeatInterval") == 0:
+                # implicit connectivity check
+                self.serverStateChanged.emit(True, "")
 
     def state(self):
         """

eric ide

mercurial