Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

style(nvidia-cosmos): drop the banned em-dash from the retired-route warning

nirholasa59bc086ea82
diff --git a/api/_providers/nvidia-cosmos.js b/api/_providers/nvidia-cosmos.js
index 97e9aef04..e7e43829a 100644
--- a/api/_providers/nvidia-cosmos.js
+++ b/api/_providers/nvidia-cosmos.js
@@ -388,7 +388,7 @@ export function createNvidiaCosmosProvider() {
// Only a retired route is worth stepping past; a key, quota, or
// gateway failure means the next rung would fail the same way.
if (err?.code !== 'lane_unavailable') throw err;
- console.warn('[nvidia-cosmos] route retired, trying the next rung — %s', url);
+ console.warn('[nvidia-cosmos] route retired, trying the next rung: %s', url);
retiredErr = err;
}
}
@@ -441,6 +441,12 @@ export function createNvidiaCosmosProvider() {
if (res.status === 429) {
return { status: 'running', error: 'NVIDIA is rate limiting; will retry' };
}
+ if (res.status >= 400 && res.status < 500) {
+ // A 4xx other than the rate limit means NVCF rejected the handle itself
+ // (malformed or unknown request id). Reporting 'running' made the client
+ // poll a dead job for the full five-minute ceiling before giving up.
+ return { status: 'failed', error: 'NVCF rejected this request id' };
+ }
return { status: 'running', error: `NVIDIA Cosmos poll returned ${res.status}` };
},
};