There was an error while loading. Please reload this page.
1 parent 11b363a commit 5715ec6Copy full SHA for 5715ec6
1 file changed
services/L_Llm.py
@@ -22,6 +22,8 @@ def initLlm():
22
runtime.getConfig()
23
#python.subscribe(llm.getName(), "publishText", "onFilterText")
24
config = llm.getConfig()
25
+ if config.listeners == None or config.listeners == []:
26
+ python.subscribe(llm.getName(), "publishText", "onFilterText")
27
if config.url == None or config.url == "http://localhost:11434" or config.url == "http://localhost:11434/v1/chat/completions":
28
config.url = "http://localhost:11434/api/generate"
29
runtime.warn('url is set by default to a localhost')
0 commit comments