health-check: route remaining bearer placeholders through $LLK env guard

This commit is contained in:
2026-09-20 15:29:42 +00:00
parent 973335d35b
commit 502f2d17c3
+2 -2
View File
@@ -150,7 +150,7 @@ MODEL_FAILS=0
for model in $MODELS; do
echo -n " Model $model... "
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 30 \
-H "Authorization: Bearer $MONITOR_KEY" \
-H "Authorization: Bearer $LLK" \
-H "Content-Type: application/json" \
-d "{\"model\":\"$model\",\"messages\":[{\"role\":\"user\",\"content\":\"ping\"}],\"max_tokens\":5}" \
"http://${LITELLM_HOST}:4000/v1/chat/completions" 2>/dev/null)
@@ -166,7 +166,7 @@ done
# 6. Agent keys
echo -n " Agent Keys... "
KEYS=$(curl -s --connect-timeout 10 \
-H "Authorization: Bearer $MASTER_KEY" \
-H "Authorization: Bearer $LLK" \
"http://${LITELLM_HOST}:4000/key/list?return_full_object=true" 2>/dev/null)
AGENT_COUNT=$(echo "$KEYS" | python3 -c "
import sys,json