mvp-ai's picture
download
raw
402 Bytes
export function warmModelEndpoints(decisionBaseURL: string): void {
const origins = new Set<string>();
for (const raw of [decisionBaseURL, process.env.TEXT_MODEL_BASE_URL]) {
try {
if (raw) origins.add(new URL(raw).origin);
} catch {
}
}
for (const origin of origins) {
fetch(origin, { method: "HEAD" })
.then((r) => r.arrayBuffer())
.catch(() => {});
}
}

Xet Storage Details

Size:
402 Bytes
·
Xet hash:
f19b83a6b34701d0f43a241014b0fcf56c3208d8c64706d0f9fb699fe282e63e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.