pi-llama-switch 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/health.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-llama-switch",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Restart llama-server with different model configurations. For single-model setups where models need different flags (context size, vision projector, sampling params).",
5
5
  "keywords": [
6
6
  "pi",
package/src/health.ts CHANGED
@@ -16,9 +16,9 @@ async function fetchHealth(
16
16
  headers: { Accept: "application/json" },
17
17
  });
18
18
 
19
- // 503 means server is alive but unhealthy (vLLM engine dead)
19
+ // 503 means server is alive but still loading (llama-server) or unhealthy (vLLM)
20
20
  if (res.status === 503) {
21
- return { status: "error", error: "server returned 503" };
21
+ return { status: "loading", error: "server returned 503" };
22
22
  }
23
23
 
24
24
  if (!res.ok) {