PageSourceSearch

https://www.bitnow.ai/_next/static/chunks/bd5071ad761f247c.js?dpl=dpl_5ULnmXzPa4iLiadRgcKfJ3uorkag

js bitnow.ai collected 2026-10-05 13:29:29 UTC 4,322 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19709,e=>{"use strict";var t=e.i(843476),i=e.i(271645);let r=(0,e.i(475254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var s=e.i(12654);function l(){let[e,l]=i.useState([]),[a,n]=i.useState(!0),[c,o]=i.useState("");i.useEffect(()=>{let e=!1;return(async()=>{try{let t=await (0,s.gatewayRequest)("/v1/models",{method:"GET"});!e&&Array.isArray(t?.data)&&l(t.data)}catch{e||l([])}finally{e||n(!1)}})(),()=>{e=!0}},[]);let d=i.useMemo(()=>{if(!c.trim())return e;let t=c.toLowerCase();return e.filter(e=>{let i=(e.model??e.id??"").toString().toLowerCase(),r="string"==typeof e.owned_by?e.owned_by.toLowerCase():(e.suppliers?.[0]?.provider??"").toLowerCase();return i&&i.includes(t)||r&&r.includes(t)})},[e,c]);return(0,t.jsx)("div",{className:"min-h-screen bg-white text-zinc-900 pb-24",children:(0,t.jsxs)("main",{className:"max-w-7xl mx-auto px-6 pt-16 pb-16",children:[(0,t.jsxs)("div",{className:"mb-12",children:[(0,t.jsx)("h1",{className:"text-4xl font-semibold tracking-tight text-zinc-900 mb-4",children:"Model Directory"}),(0,t.jsx)("p",{className:"text-lg text-zinc-500 max-w-2xl",children:"Explore the decentralized compute network. Compare models and real-time pricing across all OpenBytes suppliers."})]}),(0,t.jsx)("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 mb-8",children:(0,t.jsxs)("div",{className:"relative w-full sm:w-96",children:[(0,t.jsx)(r,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-400"}),(0,t.jsx)("input",{type:"text",placeholder:"Search models by name or provider...",value:c,onChange:e=>o(e.target.value),className:"w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-zinc-900/10 focus:border-zinc-300 transition-all"})]})}),(0,t.jsx)("div",{className:"bg-white border border-zinc-200 rounded-2xl overflow-hidden shadow-sm",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-left border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"bg-zinc-50/50 border-b border-zinc-200",children:[(0,t.jsx)("th",{className:"px-6 py-4 text-xs font-semibold text-zinc-500 uppercase tracking-wider",children:"Model"}),(0,t.jsx)("th",{className:"px-6 py-4 text-xs font-semibold text-zinc-500 uppercase tracking-wider",children:"Providers"}),(0,t.jsx)("th",{className:"px-6 py-4 text-xs font-semibold text-zinc-500 uppercase tracking-wider text-right",children:"In (USDC / 1M)"}),(0,t.jsx)("th",{className:"px-6 py-4 text-xs font-semibold text-zinc-500 uppercase tracking-wider text-right",children:"Out (USDC / 1M)"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-zinc-100",children:a?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:6,className:"px-6 py-12 text-center text-zinc-500",children:"Loading…"})}):0===d.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:6,className:"px-6 py-12 text-center text-zinc-500",children:"No models found. Connect to the gateway or try Playground."})}):d.map(e=>{let i=(e.model??e.id??"").toString();return"string"==typeof e.owned_by?e.owned_by:e.suppliers?.[0]?.provider??e.suppliers?.[0]?.type,(0,t.jsxs)("tr",{className:"hover:bg-zinc-50/50 transition-colors group",children:[(0,t.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,t.jsx)("div",{className:"font-medium text-zinc-900",children:i})}),(0,t.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:e.suppliers?.length??0}),(0,t.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-right",children:"string"==typeof e.min_price_per_million_in&&"string"==typeof e.max_price_per_million_in?`$${parseFloat(e.min_price_per_million_in).toFixed(2)} – $${parseFloat(e.max_price_per_million_in).toFixed(2)}`:"—"}),(0,t.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-right",children:"string"==typeof e.min_price_per_million_out&&"string"==typeof e.max_price_per_million_out?`$${parseFloat(e.min_price_per_million_out).toFixed(2)} – $${parseFloat(e.max_price_per_million_out).toFixed(2)}`:"—"})]},i)})})]})})})]})})}e.s(["default",()=>l],19709)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.