Skip to content

Commit 874a192

Browse files
authored
bugfix(server): fix health checks (#49)
1 parent 69fa183 commit 874a192

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/common/server/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ class Server {
120120
...(isMacArm64 ? ["--nobrowser"] : []),
121121
...(useGPU ? ["--n-gpu-layers", "100"] : []),
122122
"--cont-batching",
123-
"--embedding",
124123
"--slots-endpoint-disable",
125124
"--log-disable",
126125
],
@@ -238,7 +237,7 @@ class Server {
238237
return true;
239238
}
240239
const resJson = (await res.json()) as { status: string };
241-
if (resJson.status === "ok") {
240+
if (resJson.status === "ok" || resJson.status === "no slot available") {
242241
this.status = "started";
243242
return true;
244243
}

0 commit comments

Comments
 (0)