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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
/cookbook: poll-leg 5xx class treated as transient
nirholas412f8996d1c6
diff --git a/public/cookbook/index.html b/public/cookbook/index.htmlindex 6d99d6d7c..a8f07d439 100644--- a/public/cookbook/index.html+++ b/public/cookbook/index.html@@ -8145,8 +8145,10 @@ function the model will call, no mocking.</p><span class="c1"># Rate-limited mid-poll: wait out Retry-After on the SAME job.</span><span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="n">_retry_after_seconds</span><span class="p">(</span><span class="n">poll</span><span class="o">.</span><span class="n">headers</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">"retry-after"</span><span class="p">)))</span><span class="k">continue</span>- <span class="k">if</span> <span class="n">poll</span><span class="o">.</span><span class="n">status_code</span> <span class="ow">in</span> <span class="n">transient_status</span><span class="p">:</span>- <span class="k">continue</span> <span class="c1"># edge hiccup mid-poll; same job, next cadence tick</span>+ <span class="k">if</span> <span class="mi">500</span> <span class="o"><=</span> <span class="n">poll</span><span class="o">.</span><span class="n">status_code</span> <span class="o"><</span> <span class="mi">600</span><span class="p">:</span>+ <span class="c1"># Any 5xx on the poll leg is an edge hiccup, not a verdict on</span>+ <span class="c1"># the job itself: same job, next cadence tick.</span>+ <span class="k">continue</span><span class="n">poll</span><span class="o">.</span><span class="n">raise_for_status</span><span class="p">()</span><span class="n">data</span> <span class="o">=</span> <span class="n">poll</span><span class="o">.</span><span class="n">json</span><span class="p">()</span><span class="k">return</span> <span class="n">data</span>diff --git a/public/cookbook/text_to_3d_with_function_calling.ipynb b/public/cookbook/text_to_3d_with_function_calling.ipynbindex e36521a0e..f17bf22e7 100644--- a/public/cookbook/text_to_3d_with_function_calling.ipynb+++ b/public/cookbook/text_to_3d_with_function_calling.ipynb@@ -288,8 +288,10 @@" # Rate-limited mid-poll: wait out Retry-After on the SAME job.\n"," time.sleep(_retry_after_seconds(poll.headers.get(\"retry-after\")))\n"," continue\n",- " if poll.status_code in transient_status:\n",- " continue # edge hiccup mid-poll; same job, next cadence tick\n",+ " if 500 <= poll.status_code < 600:\n",+ " # Any 5xx on the poll leg is an edge hiccup, not a verdict on\n",+ " # the job itself: same job, next cadence tick.\n",+ " continue\n"," poll.raise_for_status()\n"," data = poll.json()\n"," return data\n",