Write Ollama model config before initialize.sh (fix OpenRouter default)
This commit is contained in:
@@ -192,6 +192,37 @@ spec:
|
||||
fi
|
||||
# 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
|
||||
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
|
||||
exec /exe/initialize.sh $BRANCH
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user