Statt modell-spezifischer Namen (qwen3.5-single, qwen36-27b-single) wird überall der semantisch neutrale Bezeichner coding_model verwendet. Dadurch kann das Modell bei Bedarf ausgetauscht werden, ohne Konfiguration, Skripte oder Tests anpassen zu müssen. Geändert: models.json, settings.json, start-single.sh, stop-servers.sh, status.sh, pi-coder-judge-extension.ts, tests/, README.md, BEDIENUNGSANLEITUNG.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
844 B
Bash
Executable file
33 lines
844 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
check_server() {
|
|
local NAME="$1"
|
|
local PORT="$2"
|
|
local ALIAS="$3"
|
|
|
|
printf "%-28s" "$NAME (Port $PORT):"
|
|
|
|
# Docker-Status
|
|
if docker ps --format '{{.Names}}' | grep -q "^${NAME}\$"; then
|
|
printf " Container=\033[32mRUNNING\033[0m"
|
|
elif docker ps -a --format '{{.Names}}' | grep -q "^${NAME}\$"; then
|
|
printf " Container=\033[33mSTOPPED\033[0m"
|
|
else
|
|
printf " Container=\033[31mNOT FOUND\033[0m"
|
|
echo
|
|
return
|
|
fi
|
|
|
|
# HTTP-Erreichbarkeit
|
|
if curl -s --max-time 3 "http://localhost:${PORT}/health" >/dev/null 2>&1 || \
|
|
curl -s --max-time 3 "http://localhost:${PORT}/v1/models" >/dev/null 2>&1; then
|
|
printf " HTTP=\033[32mOK\033[0m"
|
|
else
|
|
printf " HTTP=\033[31mNOT READY\033[0m"
|
|
fi
|
|
|
|
echo
|
|
}
|
|
|
|
echo "=== LLaMA-Server Status ==="
|
|
check_server "coding_model" 8001 "coding_model"
|