@prismnetwork/agent-sdk 0.7.1 → 0.7.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.
- package/attest.mjs +7 -1
- package/package.json +1 -1
package/attest.mjs
CHANGED
|
@@ -683,7 +683,13 @@ async function sessionChecks(t, { root, fetchImpl, sessionId, servedAt }) {
|
|
|
683
683
|
async function gpuChecks(t, { root, fetchImpl, model, digest, quote, collateralUrl, now }) {
|
|
684
684
|
let fetched;
|
|
685
685
|
try {
|
|
686
|
-
|
|
686
|
+
// Name the instance we need. The model runs on several, and the endpoint
|
|
687
|
+
// answers from whichever the upstream picks, so asking blind returns a
|
|
688
|
+
// sibling most of the time: same image, same compose, different RTMR3.
|
|
689
|
+
const params = new URLSearchParams();
|
|
690
|
+
if (model) params.set("model", model);
|
|
691
|
+
if (digest) params.set("keyset_digest", digest);
|
|
692
|
+
const query = params.size ? `?${params}` : "";
|
|
687
693
|
fetched = await getJson(fetchImpl, `${root}/v1/gpu-evidence${query}`, "the GPU evidence endpoint");
|
|
688
694
|
} catch (err) {
|
|
689
695
|
fetched = { ok: false, detail: err?.message ?? String(err) };
|
package/package.json
CHANGED