Spaces:
Running
Running
deploy: source-bound IMMUNE fef4a3c573be8ffb2f7d87ccd2d88d7fadf8a5a9
Browse files
dist/hf-deploy-manifest.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
| 2 |
"schema": "szl.hf-deploy-manifest/v2",
|
| 3 |
"source": {
|
| 4 |
"repository": "szl-holdings/immune",
|
| 5 |
-
"revision": "
|
| 6 |
"ref": "refs/heads/main"
|
| 7 |
},
|
| 8 |
"workflow": {
|
| 9 |
"repository": "szl-holdings/immune",
|
| 10 |
-
"run_id": "
|
| 11 |
"run_attempt": "1",
|
| 12 |
"ref": "refs/heads/main"
|
| 13 |
},
|
|
@@ -17,11 +17,11 @@
|
|
| 17 |
"mode": "standalone-runtime-whitelist"
|
| 18 |
},
|
| 19 |
"artifacts": {
|
| 20 |
-
"immune-server.js": "
|
|
|
|
| 21 |
"public/assets/index-BIQ1ksWp.css": "78767122205d4249ad0d085174cce8227d10e4d1c5487273e7551c7fd43e1997",
|
| 22 |
-
"public/assets/index-DV2C6sLw.js": "9b7932f256d26d5090646e395bca7381b3927f2b9119ecea153b9101456a33d3",
|
| 23 |
"public/favicon.svg": "8ffbde9092b1fa4de97c9481b76f518b131268c82e7c555041925225b1dab6e0",
|
| 24 |
-
"public/index.html": "
|
| 25 |
"public/nexus.html": "e5e38b14da2f855f39eae25da9c6d343f7293b53d8c186cf768509b10435426f",
|
| 26 |
"public/opengraph.jpg": "1c296aaa0ca3ea47845ee09aabc63c024b8b65af1de4778edaa16e47a2ea340b",
|
| 27 |
"public/robots.txt": "16ceb5ee3e0dc13aa9adf31a3ebbe45a1d965b8c2b9f72eaf84e5911e140ed95"
|
|
|
|
| 2 |
"schema": "szl.hf-deploy-manifest/v2",
|
| 3 |
"source": {
|
| 4 |
"repository": "szl-holdings/immune",
|
| 5 |
+
"revision": "fef4a3c573be8ffb2f7d87ccd2d88d7fadf8a5a9",
|
| 6 |
"ref": "refs/heads/main"
|
| 7 |
},
|
| 8 |
"workflow": {
|
| 9 |
"repository": "szl-holdings/immune",
|
| 10 |
+
"run_id": "36556454037",
|
| 11 |
"run_attempt": "1",
|
| 12 |
"ref": "refs/heads/main"
|
| 13 |
},
|
|
|
|
| 17 |
"mode": "standalone-runtime-whitelist"
|
| 18 |
},
|
| 19 |
"artifacts": {
|
| 20 |
+
"immune-server.js": "b1b64b181d693542720239baec5a084c5afaf2d2af0598c09be2ebdc35144b51",
|
| 21 |
+
"public/assets/index-B5MwrSPy.js": "368e2083dd4c9d2e98341fe81bb39ca710a4e813a418a0b66228b1878408ea0d",
|
| 22 |
"public/assets/index-BIQ1ksWp.css": "78767122205d4249ad0d085174cce8227d10e4d1c5487273e7551c7fd43e1997",
|
|
|
|
| 23 |
"public/favicon.svg": "8ffbde9092b1fa4de97c9481b76f518b131268c82e7c555041925225b1dab6e0",
|
| 24 |
+
"public/index.html": "6e57e5b5f68d49bd5d9297ef314393557c644b0dafc23f5b00066369701c2b01",
|
| 25 |
"public/nexus.html": "e5e38b14da2f855f39eae25da9c6d343f7293b53d8c186cf768509b10435426f",
|
| 26 |
"public/opengraph.jpg": "1c296aaa0ca3ea47845ee09aabc63c024b8b65af1de4778edaa16e47a2ea340b",
|
| 27 |
"public/robots.txt": "16ceb5ee3e0dc13aa9adf31a3ebbe45a1d965b8c2b9f72eaf84e5911e140ed95"
|
dist/immune-server.js
CHANGED
|
@@ -46180,13 +46180,30 @@ var DecisionGenomeSchema = external_exports.object({
|
|
| 46180 |
digest: external_exports.string().regex(/^[a-f0-9]{64}$/)
|
| 46181 |
});
|
| 46182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46183 |
// server/routes/immune/inference.ts
|
| 46184 |
-
function
|
| 46185 |
-
if (process.env.XAI_API_KEY) return true;
|
| 46186 |
return Boolean(
|
| 46187 |
process.env.INFERENCE_BASE_URL && process.env.INFERENCE_API_KEY && process.env.INFERENCE_MODEL
|
| 46188 |
);
|
| 46189 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46190 |
function providerLabel() {
|
| 46191 |
const url2 = (process.env.INFERENCE_BASE_URL || "").toLowerCase();
|
| 46192 |
if (url2.includes("groq")) return "Groq";
|
|
@@ -46201,24 +46218,22 @@ function providerLabel() {
|
|
| 46201 |
}
|
| 46202 |
}
|
| 46203 |
function inferenceInfo() {
|
| 46204 |
-
const
|
| 46205 |
-
const
|
| 46206 |
return {
|
| 46207 |
configured,
|
| 46208 |
-
provider: configured ? providerLabel() : null,
|
| 46209 |
-
model
|
| 46210 |
};
|
| 46211 |
}
|
| 46212 |
async function chatComplete(messages, opts = {}) {
|
| 46213 |
-
|
|
|
|
| 46214 |
throw new Error("inference not configured");
|
| 46215 |
}
|
| 46216 |
-
const
|
| 46217 |
-
|
| 46218 |
-
|
| 46219 |
-
const base = groqReady ? process.env.INFERENCE_BASE_URL.replace(/\/$/, "") : "https://api.x.ai/v1";
|
| 46220 |
-
const key = groqReady ? process.env.INFERENCE_API_KEY : process.env.XAI_API_KEY;
|
| 46221 |
-
const model = groqReady ? process.env.INFERENCE_MODEL : "grok-4.5";
|
| 46222 |
const url2 = `${base}/chat/completions`;
|
| 46223 |
const controller = new AbortController();
|
| 46224 |
const timeout = setTimeout(() => controller.abort(), opts.timeoutMs ?? 25e3);
|
|
|
|
| 46180 |
digest: external_exports.string().regex(/^[a-f0-9]{64}$/)
|
| 46181 |
});
|
| 46182 |
|
| 46183 |
+
// server/routes/immune/grok-model.ts
|
| 46184 |
+
var DEFAULT_GROK_MODEL = "grok-4.7";
|
| 46185 |
+
var ALLOWED_GROK_MODELS = Object.freeze([DEFAULT_GROK_MODEL, "grok-4.5"]);
|
| 46186 |
+
function resolveGrokModel(env = process.env) {
|
| 46187 |
+
const raw = env.SZL_GROK_MODEL;
|
| 46188 |
+
const requested = typeof raw === "string" ? raw.trim() : "";
|
| 46189 |
+
if (!requested) return DEFAULT_GROK_MODEL;
|
| 46190 |
+
return ALLOWED_GROK_MODELS.includes(requested) ? requested : null;
|
| 46191 |
+
}
|
| 46192 |
+
|
| 46193 |
// server/routes/immune/inference.ts
|
| 46194 |
+
function groqReady() {
|
|
|
|
| 46195 |
return Boolean(
|
| 46196 |
process.env.INFERENCE_BASE_URL && process.env.INFERENCE_API_KEY && process.env.INFERENCE_MODEL
|
| 46197 |
);
|
| 46198 |
}
|
| 46199 |
+
function activeModel() {
|
| 46200 |
+
if (groqReady()) return process.env.INFERENCE_MODEL;
|
| 46201 |
+
if (process.env.XAI_API_KEY) return resolveGrokModel();
|
| 46202 |
+
return null;
|
| 46203 |
+
}
|
| 46204 |
+
function inferenceConfigured() {
|
| 46205 |
+
return activeModel() !== null;
|
| 46206 |
+
}
|
| 46207 |
function providerLabel() {
|
| 46208 |
const url2 = (process.env.INFERENCE_BASE_URL || "").toLowerCase();
|
| 46209 |
if (url2.includes("groq")) return "Groq";
|
|
|
|
| 46218 |
}
|
| 46219 |
}
|
| 46220 |
function inferenceInfo() {
|
| 46221 |
+
const model = activeModel();
|
| 46222 |
+
const configured = model !== null;
|
| 46223 |
return {
|
| 46224 |
configured,
|
| 46225 |
+
provider: configured ? groqReady() ? providerLabel() : "xAI" : null,
|
| 46226 |
+
model
|
| 46227 |
};
|
| 46228 |
}
|
| 46229 |
async function chatComplete(messages, opts = {}) {
|
| 46230 |
+
const model = activeModel();
|
| 46231 |
+
if (model === null) {
|
| 46232 |
throw new Error("inference not configured");
|
| 46233 |
}
|
| 46234 |
+
const useGroq = groqReady();
|
| 46235 |
+
const base = useGroq ? process.env.INFERENCE_BASE_URL.replace(/\/$/, "") : "https://api.x.ai/v1";
|
| 46236 |
+
const key = useGroq ? process.env.INFERENCE_API_KEY : process.env.XAI_API_KEY;
|
|
|
|
|
|
|
|
|
|
| 46237 |
const url2 = `${base}/chat/completions`;
|
| 46238 |
const controller = new AbortController();
|
| 46239 |
const timeout = setTimeout(() => controller.abort(), opts.timeoutMs ?? 25e3);
|
dist/public/assets/{index-DV2C6sLw.js → index-B5MwrSPy.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/public/index.html
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 21 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 22 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 23 |
-
<script type="module" crossorigin src="/assets/index-
|
| 24 |
<link rel="stylesheet" crossorigin href="/assets/index-BIQ1ksWp.css">
|
| 25 |
</head>
|
| 26 |
<body>
|
|
|
|
| 20 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 21 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 22 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 23 |
+
<script type="module" crossorigin src="/assets/index-B5MwrSPy.js"></script>
|
| 24 |
<link rel="stylesheet" crossorigin href="/assets/index-BIQ1ksWp.css">
|
| 25 |
</head>
|
| 26 |
<body>
|
hf-deploy-manifest.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
| 2 |
"schema": "szl.hf-deploy-manifest/v2",
|
| 3 |
"source": {
|
| 4 |
"repository": "szl-holdings/immune",
|
| 5 |
-
"revision": "
|
| 6 |
"ref": "refs/heads/main"
|
| 7 |
},
|
| 8 |
"workflow": {
|
| 9 |
"repository": "szl-holdings/immune",
|
| 10 |
-
"run_id": "
|
| 11 |
"run_attempt": "1",
|
| 12 |
"ref": "refs/heads/main"
|
| 13 |
},
|
|
@@ -17,11 +17,11 @@
|
|
| 17 |
"mode": "standalone-runtime-whitelist"
|
| 18 |
},
|
| 19 |
"artifacts": {
|
| 20 |
-
"immune-server.js": "
|
|
|
|
| 21 |
"public/assets/index-BIQ1ksWp.css": "78767122205d4249ad0d085174cce8227d10e4d1c5487273e7551c7fd43e1997",
|
| 22 |
-
"public/assets/index-DV2C6sLw.js": "9b7932f256d26d5090646e395bca7381b3927f2b9119ecea153b9101456a33d3",
|
| 23 |
"public/favicon.svg": "8ffbde9092b1fa4de97c9481b76f518b131268c82e7c555041925225b1dab6e0",
|
| 24 |
-
"public/index.html": "
|
| 25 |
"public/nexus.html": "e5e38b14da2f855f39eae25da9c6d343f7293b53d8c186cf768509b10435426f",
|
| 26 |
"public/opengraph.jpg": "1c296aaa0ca3ea47845ee09aabc63c024b8b65af1de4778edaa16e47a2ea340b",
|
| 27 |
"public/robots.txt": "16ceb5ee3e0dc13aa9adf31a3ebbe45a1d965b8c2b9f72eaf84e5911e140ed95"
|
|
|
|
| 2 |
"schema": "szl.hf-deploy-manifest/v2",
|
| 3 |
"source": {
|
| 4 |
"repository": "szl-holdings/immune",
|
| 5 |
+
"revision": "fef4a3c573be8ffb2f7d87ccd2d88d7fadf8a5a9",
|
| 6 |
"ref": "refs/heads/main"
|
| 7 |
},
|
| 8 |
"workflow": {
|
| 9 |
"repository": "szl-holdings/immune",
|
| 10 |
+
"run_id": "36556454037",
|
| 11 |
"run_attempt": "1",
|
| 12 |
"ref": "refs/heads/main"
|
| 13 |
},
|
|
|
|
| 17 |
"mode": "standalone-runtime-whitelist"
|
| 18 |
},
|
| 19 |
"artifacts": {
|
| 20 |
+
"immune-server.js": "b1b64b181d693542720239baec5a084c5afaf2d2af0598c09be2ebdc35144b51",
|
| 21 |
+
"public/assets/index-B5MwrSPy.js": "368e2083dd4c9d2e98341fe81bb39ca710a4e813a418a0b66228b1878408ea0d",
|
| 22 |
"public/assets/index-BIQ1ksWp.css": "78767122205d4249ad0d085174cce8227d10e4d1c5487273e7551c7fd43e1997",
|
|
|
|
| 23 |
"public/favicon.svg": "8ffbde9092b1fa4de97c9481b76f518b131268c82e7c555041925225b1dab6e0",
|
| 24 |
+
"public/index.html": "6e57e5b5f68d49bd5d9297ef314393557c644b0dafc23f5b00066369701c2b01",
|
| 25 |
"public/nexus.html": "e5e38b14da2f855f39eae25da9c6d343f7293b53d8c186cf768509b10435426f",
|
| 26 |
"public/opengraph.jpg": "1c296aaa0ca3ea47845ee09aabc63c024b8b65af1de4778edaa16e47a2ea340b",
|
| 27 |
"public/robots.txt": "16ceb5ee3e0dc13aa9adf31a3ebbe45a1d965b8c2b9f72eaf84e5911e140ed95"
|