diff --git a/start-coding-server.sh b/start-coding-server.sh index 243da3f..407128b 100755 --- a/start-coding-server.sh +++ b/start-coding-server.sh @@ -62,7 +62,7 @@ for i in {1..150}; do HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" --max-time 10 \ -X POST "http://localhost:${HOST_PORT}/v1/chat/completions" \ -H "Content-Type: application/json" \ - -d "{\"model\":\"${MODEL_ALIAS}\",\"messages\":[{\"role\":\"user\",\"content\":\"ping\"}],\"max_tokens\":1,\"temperature\":0.0,\"stream\":false}") + -d "{\"model\":\"${MODEL_ALIAS}\",\"messages\":[{\"role\":\"user\",\"content\":\"ping\"}],\"max_tokens\":1,\"temperature\":0.0,\"stream\":false}") || HTTP_CODE="000" if [ "$HTTP_CODE" = "200" ]; then MODEL_READY=1; break; fi echo " [${i}/150] HTTP ${HTTP_CODE:-000} — Modell lädt noch, warte 2s ..." sleep 2