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
fix(coin): empty price history is a cacheable answer, not a 502
nirholas0245f9ace62d
diff --git a/api/coin/ohlc.js b/api/coin/ohlc.jsindex c73d57ba5..d5d76bd9b 100644--- a/api/coin/ohlc.js+++ b/api/coin/ohlc.js@@ -59,7 +59,14 @@ export default wrap(async (req, res) => {try {const { data } = await buildPriceChart(id, days);- if (!data.length) return error(res, 502, 'no_data', 'no price history for this coin');+ // An empty series is an answer (dead or unlisted market), not an outage:+ // 200 keeps it CDN-cacheable and out of the 5xx monitors; the chart UI+ // renders its designed no-data state for anything shorter than 2 points.+ if (!data.length) {+ return json(res, 200, { data: [], days }, {+ 'cache-control': 'public, max-age=60, s-maxage=120, stale-while-revalidate=600',+ });+ }return json(res, 200, { data, days }, {'cache-control': 'public, max-age=60, s-maxage=120, stale-while-revalidate=600',});