zuppaclaude 1.3.11 → 1.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -87,10 +87,18 @@ fi
|
|
|
87
87
|
|
|
88
88
|
ZAI_API_KEY=$(cat "$API_KEY_FILE")
|
|
89
89
|
|
|
90
|
-
# Export environment
|
|
90
|
+
# Export environment for z.ai
|
|
91
91
|
export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
|
|
92
92
|
export ANTHROPIC_API_KEY="$ZAI_API_KEY"
|
|
93
93
|
|
|
94
|
+
# Check for auth conflict (claude.ai token file)
|
|
95
|
+
CLAUDE_AUTH_FILE="$HOME/.claude/.credentials.json"
|
|
96
|
+
if [ -f "$CLAUDE_AUTH_FILE" ]; then
|
|
97
|
+
echo -e "\\033[0;33m[!]\\033[0m Auth conflict detected (claude.ai login exists)"
|
|
98
|
+
echo -e " Run: \\033[0;36mclaude /logout\\033[0m to fix this"
|
|
99
|
+
echo ""
|
|
100
|
+
fi
|
|
101
|
+
|
|
94
102
|
echo -e "\\033[0;32m[✓]\\033[0m Using z.ai backend"
|
|
95
103
|
echo -e "\\033[0;34m[i]\\033[0m Starting Claude Code..."
|
|
96
104
|
echo ""
|