#!/bin/bash
# Switch Ezra to Gemma 4 backend

CONFIG=/root/wizards/ezra/home/config.yaml

# Backup current config
cp $CONFIG ${CONFIG}.backup.$(date +%Y%m%d-%H%M%S)

# Use sed to switch default provider to gemma4-local
sed -i 's/default: kimi-for-coding/default: gemma-4-31B-it-Q4_K_M/' $CONFIG
sed -i 's/provider: kimi-coding/provider: gemma4-local/' $CONFIG

echo "✓ Ezra switched to Gemma 4 backend"
echo "  Provider: gemma4-local"
echo "  Model: gemma-4-31B-it-Q4_K_M"
echo "  URL: http://127.0.0.1:11435"
