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.
+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.7.11",
"version": "1.7.12",
"tab": {"path": "/ollama-manager", "position": "after:models"},
"entry": "dist/index.js",
"css": "dist/style.css",
+2 -2
View File
@@ -1,10 +1,10 @@
name: ollama-manager
version: 1.7.11
version: 1.7.12
description: Native dashboard manager and chat interface for local Ollama models, attachments, URLs, shared persistent conversations, performance metrics, and live runtime telemetry.
auto_install_dependencies: true
python_dependencies:
- "pypdf>=6.0,<7.0"
- "psycopg[binary]>=3.2,<4.0"
- "psycopg[binary]>=3.2,<4.0; sys_platform != 'android'"
external_dependencies:
- name: Ollama
check: bash scripts/install_ollama.sh --check
+1 -1
View File
@@ -1,3 +1,3 @@
# PDF text extraction for Ollama Chat attachments
pypdf>=6.0,<7.0
psycopg[binary]>=3.2,<4.0
psycopg[binary]>=3.2,<4.0; sys_platform != 'android'