fix: resolve Ollama plugin dependencies cross-platform

This commit is contained in:
Hermes Agent committed 2026-10-25 23:34:50 +11:00
1 parent 0fdc1b6449
commit 73c0fbe3a5
4 files changed
+6 -4

No files matched your search

+2
View File
@@ -129,6 +129,8 @@ https://gitea.beyondcloud.solutions/dennii/Hermes-Ollama_Models.git
In Hermes Dashboard, open **Plugins**, choose **Install from repository**, enter the URL above, and install. The repository contains the root `plugin.yaml`, dashboard manifest, backend API, compiled frontend bundle, stylesheet, and an opt-in prerequisite declaration. On Linux, the Hermes installer will verify Ollama, install it with the official Ollama installer when missing, and install the plugin's `pypdf` dependency before committing the plugin into `~/.hermes/plugins/`. Ollama installation requires the Hermes container to run as root, which is the expected configuration for a privileged ZimaOS deployment. If the container is not running as root, the plugin install stops without enabling a partially configured plugin. After installation or an update, restart only the Hermes dashboard service if requested by the installer.
The manifest excludes `psycopg[binary]` on Android targets because Psycopg publishes no Android wheels; Hermes resolves plugin dependencies across platform markers even when running on Linux. PostgreSQL support remains available on supported platforms. The plugin version is 1.7.12.
The dashboard now includes a connection panel in the header. Enter an Ollama base URL, choose **Local** or **Remote**, and use **Test** before **Save**. Saved URLs are stored in Hermes plugin data with file permissions restricted to the Hermes account. Credential-bearing URLs are rejected.
The plugin probes the configured local endpoint and known Docker endpoints, and tests a configured remote endpoint. A successful connection reports the Ollama version and installed model count. The active local endpoint continues to drive chat, status, load, and runtime telemetry. A URL saved from the dashboard takes precedence over the initial `OLLAMA_HOST` environment fallback, so the field can correct or replace an inherited container setting.