import{w as f,j as l}from"./jsx-runtime-CgWCn3gT.js";import{S as d,L as g}from"./legacy-shell-D4JdMu14.js";import{J as x,e as y,a as $,o as I}from"./seo-meta-Bpqygpx8.js";import{b as L,f as P,P as b,a as v,c as A,d as C}from"./index-Cq8XyhQL.js";import{p as M}from"./index-hXL9_ymv.js";import{E as B}from"./error-page-Bt0s4Oe9.js";import"./i18nInstance-C_7vXBXC.js";import"./useTranslation-CksCcIr-.js";import"./index-ao6ir_VS.js";import"./preload-helper-BXl3LOEh.js";import"./providerSeo-RwIhoovz.js";const m=d.siteInfo.domain;function H({data:c,error:s}){if(s?.status&&s.status>=500)return[{title:"Temporarily Unavailable"},{name:"robots",content:"noindex"}];if(s||!c)return[{title:"Model Author Not Found"},{name:"robots",content:"noindex"}];const{dev:t,rows:a,hero:e,usage:i}=c,r=`${t.name} Models - Pricing, Context & Speed | AIHubMix`,n=[`All ${a.length} ${t.name} models available through one AIHubMix key`];e.starterPrice===0?n.push("starting free"):e.starterPrice!==null&&n.push(`from ${v(e.starterPrice)}/M input`),e.maxCtx&&n.push(`up to ${A(e.maxCtx)} context`);const u=`${n.join(", ")}. Compare price, context, max output, cache rates and measured throughput${i?`, with ${C(i.totalCalls)} requests of real usage over the last ${i.days} days`:""}.`,p=`${m}/authors/${t.slug}`;return[{title:r},{name:"description",content:u},{tagName:"link",rel:"canonical",href:p},...$(),...I({title:r,description:u,url:p})]}const J=f(function({loaderData:s}){const{dev:t,rows:a,faqFacts:e}=s,i=L({devName:t.name,rows:a,faqFacts:e},"en"),r=`${m}/authors/${t.slug}`,n={"@type":"WebSite",name:d.siteInfo.siteName,url:m},p={"@context":"https://schema.org","@graph":[{"@type":"CollectionPage",url:r,name:`${t.name} Models`,inLanguage:"en",isPartOf:n,mainEntity:{"@type":"ItemList",numberOfItems:a.length,itemListElement:a.map((o,h)=>({"@type":"ListItem",position:h+1,name:o.name||o.id,url:`${m}/model/${encodeURIComponent(o.id)}`}))}},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Model Authors",item:`${m}/authors`},{"@type":"ListItem",position:2,name:t.name,item:r}]},{"@type":"FAQPage",mainEntity:i.map(o=>({"@type":"Question",name:o.q,acceptedAnswer:{"@type":"Answer",text:P(o.a)}}))}]};return l.jsxs(g,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),l.jsx(b,{...s},t.slug),l.jsx("script",{id:x,type:"application/ld+json",dangerouslySetInnerHTML:{__html:y(JSON.stringify(p))}})]})});export{B as ErrorBoundary,J as default,H as meta};
