PluginAiOllama.py

changeset 7
eb1dec15b2f0
parent 5
6e8af43d537d
child 8
3118d16e526e
diff -r d8064fb63eac -r eb1dec15b2f0 PluginAiOllama.py
--- a/PluginAiOllama.py	Wed Aug 07 18:19:25 2024 +0200
+++ b/PluginAiOllama.py	Thu Aug 08 18:33:49 2024 +0200
@@ -127,6 +127,7 @@
             "OllamaScheme": "http",
             "OllamaHost": "localhost",
             "OllamaPort": 11434,
+            "OllamaLocalPort": 11435,  # port for locally started ollama server
             "OllamaHeartbeatInterval": 5,  # 5 seconds heartbeat time; 0 = disabled
             "StreamingChatResponse": True,
         }
@@ -268,7 +269,7 @@
         @return the requested setting value
         @rtype Any
         """
-        if key in ("OllamaPort", "OllamaHeartbeatInterval"):
+        if key in ("OllamaPort", "OllamaLocalPort", "OllamaHeartbeatInterval"):
             return int(
                 Preferences.Prefs.settings.value(
                     self.PreferencesKey + "/" + key, self.__defaults[key]

eric ide

mercurial