From a33fbe8872e0f560b814d29a104d7a30f530d4df Mon Sep 17 00:00:00 2001 From: Ivan Pegashev Date: Mon, 13 May 2024 00:20:56 +0300 Subject: [PATCH] bugfix(server): fix health checks --- src/common/server/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/server/index.ts b/src/common/server/index.ts index efb1d04..ea76d0d 100644 --- a/src/common/server/index.ts +++ b/src/common/server/index.ts @@ -120,7 +120,6 @@ class Server { ...(isMacArm64 ? ["--nobrowser"] : []), ...(useGPU ? ["--n-gpu-layers", "100"] : []), "--cont-batching", - "--embedding", "--slots-endpoint-disable", "--log-disable", ], @@ -238,7 +237,7 @@ class Server { return true; } const resJson = (await res.json()) as { status: string }; - if (resJson.status === "ok") { + if (resJson.status === "ok" || resJson.status === "no slot available") { this.status = "started"; return true; }