Fix model config: write config.json not config.yaml (plugin reads JSON)

This commit is contained in:
Claude Code
2026-04-08 19:22:16 +00:00
parent acb19bee9c
commit 072d64a5e9

View File

@@ -193,36 +193,14 @@ spec:
# 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 # Write model config BEFORE initialize.sh loads it
# The _model_config plugin defaults to OpenRouter; override to local Ollama # The _model_config plugin reads config.json (NOT config.yaml)
# Default is OpenRouter; override to local Ollama on edge1
mkdir -p /a0/usr/plugins/_model_config mkdir -p /a0/usr/plugins/_model_config
cat > /a0/usr/plugins/_model_config/config.yaml << 'MODELCFG' cat > /a0/usr/plugins/_model_config/config.json << 'MODELCFG'
allow_chat_override: true {"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":{}}}
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 MODELCFG
# Strip leading whitespace from heredoc (YAML is indentation-sensitive) # Strip heredoc indentation
sed -i 's/^ //' /a0/usr/plugins/_model_config/config.yaml sed -i 's/^ //' /a0/usr/plugins/_model_config/config.json
# Run the original entrypoint # Run the original entrypoint
exec /exe/initialize.sh $BRANCH exec /exe/initialize.sh $BRANCH
ports: ports: