Skip to content

Commit

Permalink
bugfix(server): update health check for mac arm
Browse files Browse the repository at this point in the history
  • Loading branch information
gespispace committed Apr 30, 2024
1 parent 7ebd1fc commit 3bf438d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/common/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,9 @@ class Server {
const osplatform = os.platform();
const osmachine = os.machine();
const isMacArm64 = osplatform === "darwin" && osmachine === "arm64";
const res = await fetch(
`${this.serverUrl}/${isMacArm64 ? "model.json" : "health"}`,
{
method: "GET",
}
);
const res = await fetch(`${this.serverUrl}/${"health"}`, {
method: "GET",
});
if (res.ok) {
if (isMacArm64) {
this.status = "started";
Expand Down

0 comments on commit 3bf438d

Please sign in to comment.