Write Ollama model config before initialize.sh (fix OpenRouter default)

This commit is contained in:
Claude Code
2026-04-08 19:15:43 +00:00
parent e6fbe2d22b
commit acb19bee9c

View File

@@ -192,6 +192,37 @@ spec:
fi fi
# Link Blue Jay profile from workspace into Agent Zero's expected path # Link Blue Jay profile from workspace into Agent Zero's expected path
ln -sfn /a0/work/.bluejay/agents/bluejay /a0/agents/bluejay ln -sfn /a0/work/.bluejay/agents/bluejay /a0/agents/bluejay
# Write model config BEFORE initialize.sh loads it
# The _model_config plugin defaults to OpenRouter; override to local Ollama
mkdir -p /a0/usr/plugins/_model_config
cat > /a0/usr/plugins/_model_config/config.yaml << 'MODELCFG'
allow_chat_override: true
chat_model:
provider: "ollama"
name: "qwen2.5-coder:7b"
api_base: "http://10.0.57.17:11434"
ctx_length: 32768
ctx_history: 0.7
vision: false
kwargs:
temperature: 0
num_ctx: 32768
utility_model:
provider: "ollama"
name: "qwen2.5-coder:7b"
api_base: "http://10.0.57.17:11434"
ctx_length: 8192
ctx_input: 0.7
kwargs:
num_ctx: 8192
embedding_model:
provider: "ollama"
name: "nomic-embed-text"
api_base: "http://10.0.57.17:11434"
kwargs: {}
MODELCFG
# Strip leading whitespace from heredoc (YAML is indentation-sensitive)
sed -i 's/^ //' /a0/usr/plugins/_model_config/config.yaml
# Run the original entrypoint # Run the original entrypoint
exec /exe/initialize.sh $BRANCH exec /exe/initialize.sh $BRANCH
ports: ports: