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:
@@ -49,23 +49,26 @@ qwen3:14b and qwen3.6 are CPU-bottlenecked on this machine (split mode, PCIe ban
|
||||
|
||||
## Endpoints
|
||||
|
||||
Auto-detect: any machine that has a local Ollama listening on `127.0.0.1:11434` uses local. Otherwise fall back to Mike's workstation over Tailscale.
|
||||
Auto-detect: any machine with a local Ollama on `127.0.0.1:11434` uses local. Otherwise it falls back to the **per-machine** host in `.claude/identity.json` `ollama_fallback` — each user/machine chooses its own (GURU-BEAST-ROG, the always-on RTX 4090, is the usual pick).
|
||||
|
||||
```bash
|
||||
# Preferred universal resolver — works on any machine
|
||||
if curl -s -m 2 http://localhost:11434/api/tags >/dev/null 2>&1; then
|
||||
OLLAMA="http://localhost:11434"
|
||||
# Universal resolver — the fallback is per-machine, read from identity.json (never hardcode)
|
||||
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"
|
||||
elif [ -n "$FALLBACK" ]; then
|
||||
OLLAMA="$FALLBACK" # e.g. GURU-KALI -> http://100.101.122.4:11434 (GURU-BEAST-ROG)
|
||||
else
|
||||
OLLAMA="http://100.101.122.4:11434"
|
||||
OLLAMA="$LOCAL" # no fallback configured — local only
|
||||
fi
|
||||
```
|
||||
|
||||
Rationale:
|
||||
- **DESKTOP-0O8A1RL:** local matches, uses local Ollama — faster, no Tailscale hop.
|
||||
- **HOWARD-HOME:** also has a local Ollama with the canonical model set (confirmed 2026-04-22). Uses local — faster, zero Tailscale hop.
|
||||
- **GURU-BEAST-ROG:** always-on; the canonical fallback for all machines without a local Ollama.
|
||||
- **Other team machines:** no local Ollama → falls back to Beast over Tailscale.
|
||||
- **Beast offline (rare):** graceful degradation — local Ollama users continue; remote users get a clean timeout.
|
||||
- **Local-Ollama machines** (e.g. Howard-Home, with the canonical model set) use local — faster, zero Tailscale hop; leave `ollama_fallback` unset/local.
|
||||
- **GURU-BEAST-ROG:** always-on RTX 4090; the usual `ollama_fallback` target for machines without local models.
|
||||
- **Machines without local Ollama** set `ollama_fallback` in identity.json to the host they want (commonly Beast over Tailscale).
|
||||
- **Fallback offline (rare):** graceful degradation — local users continue; remote users get a clean timeout.
|
||||
|
||||
Manual override (for testing or explicit preference): set `OLLAMA=http://100.101.122.4:11434` before the call.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user