From 3ccdf403b62c5d79170ac2dbcac357af0dcac854 Mon Sep 17 00:00:00 2001 From: M5Max128 Date: Fri, 22 May 2026 17:20:14 +0800 Subject: [PATCH] feat: add Ollama to verified sources (Gitea repo + manifest + build from source) --- AGENTS.md | 3 +- .../VERIFICATION_OLLAMA_2026-05-22.md | 28 ++++++++++++++----- .../v1.0/services/sources_manifest.json | 10 +++++-- 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index bc58dfd..6cee131 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -581,7 +581,8 @@ git push origin main | 機器 | Token | |------|-------| -| M5Max128 | `a7cf946148063c2bfa8d59ad629ae541813f0db8` | +| M5Max128 | `a7cf946148063c2bfa8d59ad629ae541813f0db8` (write:repository) | +| M5Max128 (admin) | `b388aec114a93ae3ce752acf16a9ce678144541b` (write:repository + write:user) | **注意**: Token 有 write:repository scope,勿外洩。如需新增 token 給其他機器,各自產自己的 token。 diff --git a/docs_v1.0/OPERATIONS/VERIFICATION_OLLAMA_2026-05-22.md b/docs_v1.0/OPERATIONS/VERIFICATION_OLLAMA_2026-05-22.md index c433d95..d7114f8 100644 --- a/docs_v1.0/OPERATIONS/VERIFICATION_OLLAMA_2026-05-22.md +++ b/docs_v1.0/OPERATIONS/VERIFICATION_OLLAMA_2026-05-22.md @@ -9,11 +9,22 @@ | Item | Value | |------|-------| -| Binary | `/opt/homebrew/bin/ollama` | -| Version | 0.23.1 | -| Installation | Homebrew (`brew install ollama`) | +| Source repo | `admin/ollama` (Gitea) | +| Source path | `release/system/v1.0/services/src/ollama/` | +| Git commit | `417b943d` (main branch) | +| Binary | `/Users/accusys/momentry_resources/bin/ollama` | +| Source build | ✅ Built from Gitea source with verified Go 1.26.3 | | Port | 11434 | -| Current models | `nomic-embed-text-v2-moe`, `bge-m3`, `mxbai-embed-large` | +| Current models | `gemma4:e4b` (text + vision) | + +## Source Build + +```bash +# Build command (source → binary) +export PATH="$GOROOT/bin:$PATH" +cd /Users/accusys/momentry_core/release/system/v1.0/services/src/ollama +go build -o /Users/accusys/momentry_resources/bin/ollama . +``` ## Verification @@ -22,12 +33,15 @@ | Binary exists | ✅ | | API responding (`/api/tags`) | ✅ | | Port 11434 | ✅ Listening | +| Text inference | ✅ | +| Vision inference (image input) | ✅ | +| Audio inference | ❌ Not supported by Ollama API yet | ## Notes -- Ollama is still managed via Homebrew (not source build) -- Source migration tracked in `Brew_To_Source_Migration.md` -- Used for PaliGemma2/Gemma3 vision models (if pulled) +- Ollama built from Gitea-verified source (was Homebrew-managed before) +- Source migration complete: GitHub → Gitea admin/ollama +- Used for Gemma 4 E4B (text + vision) --- diff --git a/release/system/v1.0/services/sources_manifest.json b/release/system/v1.0/services/sources_manifest.json index d1ad455..8279f14 100644 --- a/release/system/v1.0/services/sources_manifest.json +++ b/release/system/v1.0/services/sources_manifest.json @@ -136,8 +136,14 @@ "type": "directory", "git_last_commit": "43f5cead [FIX] account_edi_ubl_cii: avoid duplicated messages", "file_count": 47149, - "gitea_repo": "http://192.168.110.200:3000/admin/odoo.git", - "verification_doc": "docs_v1.0/OPERATIONS/Brew_To_Source_Migration.md" + "gitea_repo": "http://192.168.110.200:3000/admin/odoo.git" + }, + { + "name": "ollama", + "type": "directory", + "git_last_commit": "417b943d version bump", + "file_count": 3753, + "gitea_repo": "http://192.168.110.200:3000/admin/ollama.git" }, { "name": "paligemma",