sync: auto-sync from GURU-KALI at 2026-05-26 19:59:15
Author: Mike Swanson Machine: GURU-KALI Timestamp: 2026-05-26 19:59:15
This commit is contained in:
@@ -15,18 +15,19 @@ Route Tier-0 tasks (summaries, classifications, drafts, extractions) through Oll
|
||||
- Suggesting refactors / generating docstrings → codestral:22b (then review)
|
||||
- NEVER for: auth decisions, credential handling, production migrations, security review, citation work, production-change scripts
|
||||
|
||||
**Endpoint resolution (updated 2026-04-22 in `.claude/OLLAMA.md`):**
|
||||
**Endpoint resolution — the remote fallback is a PER-MACHINE choice in `.claude/identity.json` `ollama_fallback`, never hardcoded:**
|
||||
```bash
|
||||
if curl -s -m 2 http://localhost:11434/api/tags >/dev/null 2>&1; then
|
||||
OLLAMA="http://localhost:11434"
|
||||
LOCAL="http://localhost:11434"
|
||||
FALLBACK=$(python3 -c "import json;print((json.load(open('.claude/identity.json')).get('ollama_fallback') or {}).get('endpoint',''))" 2>/dev/null)
|
||||
if curl -s -m 2 "$LOCAL/api/tags" >/dev/null 2>&1; then
|
||||
OLLAMA="$LOCAL" # local Ollama is up — use it
|
||||
elif [ -n "$FALLBACK" ]; then
|
||||
OLLAMA="$FALLBACK" # per-machine fallback from identity.json
|
||||
else
|
||||
OLLAMA="http://100.92.127.64:11434"
|
||||
OLLAMA="$LOCAL" # no fallback configured — local only
|
||||
fi
|
||||
```
|
||||
|
||||
[DISCREPANCY 2026-05-26 — CLAUDE.md gives the canonical always-on Tailscale fallback as GURU-BEAST-ROG @ 100.101.122.4. Defer to CLAUDE.md; Mike to confirm which is correct.]
|
||||
|
||||
Howard-Home has the canonical models loaded locally (qwen3:14b, codestral:22b, nomic-embed-text, plus bonus qwen3-coder:30b) — so Howard-Home uses local Ollama, not Mike's. Zero Tailscale hop.
|
||||
Each machine sets its own `ollama_fallback` in identity.json, e.g. `{"host":"GURU-BEAST-ROG","endpoint":"http://100.101.122.4:11434"}`. GURU-BEAST-ROG (RTX 4090, always on) is the usual choice; GURU-KALI is set to it (confirmed 2026-05-26). A machine with local models loaded (e.g. Howard-Home: qwen3:14b, codestral:22b, nomic-embed-text, qwen3-coder:30b) can leave `ollama_fallback` unset/local — zero Tailscale hop. Do NOT bake a fallback IP into shared files (memory, OLLAMA.md, CLAUDE.md) — read it from identity.json.
|
||||
|
||||
**Call pattern for qwen3 — use `/api/chat` with `think:false`**, NOT `/api/generate`. qwen3 on generate endpoint dumps reasoning into internal thinking tokens and returns empty `response` field. Chat endpoint with `think:false` returns clean content in `message.content`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user