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
@@ -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}$")