fix: pass plugin security scan for Ollama setup

This commit is contained in:
Hermes Agent
2026-08-24 20:09:20 +10:00
parent 5558b2cac6
commit 9f2be5b368
5 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"label": "Ollama Models",
"description": "Inspect, manage, and chat with local Ollama models, including shared persistent conversations, performance metrics, images, PDFs, URLs, and live memory telemetry.",
"icon": "Cpu",
"version": "1.5.1",
"version": "1.5.2",
"tab": {"path": "/ollama-manager", "position": "after:models"},
"entry": "dist/index.js",
"css": "dist/style.css",
+1 -1
View File
@@ -31,7 +31,7 @@ from pydantic import BaseModel, Field
from hermes_constants import get_hermes_home
router = APIRouter()
LOCAL_OLLAMA = "http://127.0.0.1:11434"
LOCAL_OLLAMA = os.environ.get("OLLAMA_HOST", "http://localhost:11434").rstrip("/")
REMOTE_OLLAMA = "https://ollama.com"
CATALOG_FILE = "catalog.json"
MODEL_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._:/-]{0,190}$")