337 @param response dictionary containing the version response |
337 @param response dictionary containing the version response |
338 @type dict |
338 @type dict |
339 """ |
339 """ |
340 with contextlib.suppress(KeyError): |
340 with contextlib.suppress(KeyError): |
341 self.serverVersion.emit(response["version"]) |
341 self.serverVersion.emit(response["version"]) |
|
342 if self.__plugin.getPreferences("OllamaHeartbeatInterval") == 0: |
|
343 # implicit connectivity check |
|
344 self.serverStateChanged.emit(True, "") |
342 |
345 |
343 def state(self): |
346 def state(self): |
344 """ |
347 """ |
345 Public method to get the current client state. |
348 Public method to get the current client state. |
346 |
349 |