fix(brain): route auxiliary small-model calls to an available model
The config template never set intent_judge_model, so it fell back to the code default gemma4:e2b. That model is not pulled by this stack (Ollama only has qwen2.5:3b, qwen3:8b, nomic-embed-text), so every auxiliary small-model call — intent judge, tool router, weather place extraction, query decomposition — targeted a non-existent model, silently failed, and fell open. This crippled tool routing and argument extraction on the 3B brain. Render intent_judge_model from a new OLLAMA_INTENT_MODEL env var that defaults to OLLAMA_CHAT_MODEL, so the auxiliary calls reuse the already-warm chat model (one resident model, no extra load). tool_router_model="" then resolves through the chain to the same model. Verified: rendered jarvis.json now has intent_judge_model=qwen2.5:3b, and the weather place extractor returns "서울" / "Tokyo" (it returned None for everything while pointed at the missing gemma4:e2b).
This commit is contained in:
@@ -9,6 +9,13 @@ set -euo pipefail
|
||||
: "${VNC_RESOLUTION:=1920x1080}"
|
||||
: "${OLLAMA_BASE_URL:=http://ollama:11434}"
|
||||
: "${OLLAMA_CHAT_MODEL:=qwen3:8b}"
|
||||
# Auxiliary small-model calls (intent judge, tool router, weather place
|
||||
# extraction, query decomposition). The code default is gemma4:e2b, which this
|
||||
# stack does not pull, so those calls would silently fail and fall open —
|
||||
# crippling tool routing and arg extraction. Reuse the (already warm) chat model
|
||||
# by default so everything runs on one resident model; override if you pull a
|
||||
# dedicated small model.
|
||||
: "${OLLAMA_INTENT_MODEL:=${OLLAMA_CHAT_MODEL}}"
|
||||
: "${OLLAMA_EMBED_MODEL:=nomic-embed-text}"
|
||||
: "${WHISPER_MODEL:=small}"
|
||||
: "${WHISPER_DEVICE:=cuda}"
|
||||
@@ -25,7 +32,7 @@ set -euo pipefail
|
||||
: "${XDG_RUNTIME_DIR:=/run/user/0}"
|
||||
: "${PULSE_SERVER:=unix:${XDG_RUNTIME_DIR}/pulse/native}"
|
||||
|
||||
export VNC_RESOLUTION OLLAMA_BASE_URL OLLAMA_CHAT_MODEL OLLAMA_EMBED_MODEL \
|
||||
export VNC_RESOLUTION OLLAMA_BASE_URL OLLAMA_CHAT_MODEL OLLAMA_INTENT_MODEL OLLAMA_EMBED_MODEL \
|
||||
WHISPER_MODEL WHISPER_DEVICE WHISPER_COMPUTE_TYPE JARVIS_DB_PATH \
|
||||
PIPER_VOICE PIPER_VOICE_DIR TTS_PIPER_MODEL_PATH BRIDGE_HOST BRIDGE_PORT \
|
||||
XDG_RUNTIME_DIR PULSE_SERVER
|
||||
|
||||
Reference in New Issue
Block a user