Merge pull request #4 from agenciaspace/claude/hostinger-remote-deployment-TGVof
chore(deploy): switch AI provider from Moonshot/Kimi to Z.AI (Zhipu GLM)
This commit is contained in:
commit
2cef47c15b
1 changed files with 10 additions and 10 deletions
20
.github/workflows/deploy-hostinger.yml
vendored
20
.github/workflows/deploy-hostinger.yml
vendored
|
|
@ -106,16 +106,16 @@ jobs:
|
||||||
echo "WARNING: PICOCLAW_TELEGRAM_BOT_TOKEN secret is empty - Telegram will not start"
|
echo "WARNING: PICOCLAW_TELEGRAM_BOT_TOKEN secret is empty - Telegram will not start"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Moonshot (Kimi) API Key
|
# Z.AI (Zhipu GLM) API Key
|
||||||
MOONSHOT_KEY="${{ secrets.PICOCLAW_MOONSHOT_API_KEY }}"
|
ZAI_KEY="${{ secrets.PICOCLAW_ZAI_API_KEY }}"
|
||||||
if [ -n "\$MOONSHOT_KEY" ]; then
|
if [ -n "\$ZAI_KEY" ]; then
|
||||||
set_env_var "PICOCLAW_PROVIDERS_MOONSHOT_API_KEY" "\$MOONSHOT_KEY"
|
set_env_var "PICOCLAW_PROVIDERS_ZHIPU_API_KEY" "\$ZAI_KEY"
|
||||||
set_env_var "PICOCLAW_PROVIDERS_MOONSHOT_API_BASE" "https://api.moonshot.cn/v1"
|
set_env_var "PICOCLAW_PROVIDERS_ZHIPU_API_BASE" "https://api.z.ai/api/paas/v4"
|
||||||
set_env_var "PICOCLAW_AGENTS_DEFAULTS_PROVIDER" "moonshot"
|
set_env_var "PICOCLAW_AGENTS_DEFAULTS_PROVIDER" "zhipu"
|
||||||
set_env_var "PICOCLAW_AGENTS_DEFAULTS_MODEL" "kimi-k2.5"
|
set_env_var "PICOCLAW_AGENTS_DEFAULTS_MODEL" "glm-4.7"
|
||||||
echo "Moonshot/Kimi: API key and default model configured"
|
echo "Z.AI/Zhipu: API key and default model configured"
|
||||||
else
|
else
|
||||||
echo "WARNING: PICOCLAW_MOONSHOT_API_KEY secret is empty"
|
echo "WARNING: PICOCLAW_ZAI_API_KEY secret is empty"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create config.json if it doesn't exist (copy from example)
|
# Create config.json if it doesn't exist (copy from example)
|
||||||
|
|
@ -133,7 +133,7 @@ jobs:
|
||||||
echo "Config file exists: \$(test -f "\$CONFIG_FILE" && echo YES || echo NO)"
|
echo "Config file exists: \$(test -f "\$CONFIG_FILE" && echo YES || echo NO)"
|
||||||
echo "Telegram enabled: \$(grep -c 'PICOCLAW_CHANNELS_TELEGRAM_ENABLED=true' "\$ENV_FILE" 2>/dev/null || echo 0)"
|
echo "Telegram enabled: \$(grep -c 'PICOCLAW_CHANNELS_TELEGRAM_ENABLED=true' "\$ENV_FILE" 2>/dev/null || echo 0)"
|
||||||
echo "Telegram token set: \$(grep -c 'PICOCLAW_CHANNELS_TELEGRAM_TOKEN=' "\$ENV_FILE" 2>/dev/null || echo 0)"
|
echo "Telegram token set: \$(grep -c 'PICOCLAW_CHANNELS_TELEGRAM_TOKEN=' "\$ENV_FILE" 2>/dev/null || echo 0)"
|
||||||
echo "Moonshot key set: \$(grep -c 'PICOCLAW_PROVIDERS_MOONSHOT_API_KEY=' "\$ENV_FILE" 2>/dev/null || echo 0)"
|
echo "Z.AI key set: \$(grep -c 'PICOCLAW_PROVIDERS_ZHIPU_API_KEY=' "\$ENV_FILE" 2>/dev/null || echo 0)"
|
||||||
echo "=================================="
|
echo "=================================="
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue