Fix model config: write config.json not config.yaml (plugin reads JSON)
This commit is contained in:
@@ -193,36 +193,14 @@ spec:
|
||||
# Link Blue Jay profile from workspace into Agent Zero's expected path
|
||||
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
|
||||
# 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
|
||||
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: {}
|
||||
cat > /a0/usr/plugins/_model_config/config.json << '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
|
||||
# Strip heredoc indentation
|
||||
sed -i 's/^ //' /a0/usr/plugins/_model_config/config.json
|
||||
# Run the original entrypoint
|
||||
exec /exe/initialize.sh $BRANCH
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user