OllamaInterface/OllamaClient.py

changeset 34
2b3ed778af64
parent 21
22245a10b118
child 37
c0a8df8530ab
equal deleted inserted replaced
33:acc362920670 34:2b3ed778af64
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

eric ide

mercurial