1import{r as x,j as e,w as R}from"./jsx-runtime-C5Zd082J.js";import{S as b,L as I}from"./legacy-shell-uDWgFHHP.js";import{J as L,e as w,a as E,o as S}from"./seo-meta-BirvWNNY.js";import"./providerSeo-RwIhoovz.js";import{R as j}from"./modelRetire-CGEdpeWK.js";import{u as y}from"./useTranslation-BYscrkNY.js";import{p as A}from"./index-hXL9_ymv.js";import{E as Q}from"./error-page-D_ShuN_I.js";import"./i18nInstance-BGFcVfWK.js";import"./index-1vu0c7Mb.js";import"./preload-helper-BXl3LOEh.js";function u(t){const s=t.filter(a=>a.stage!==j).sort((a,i)=>f(a.retires,i.retires,1)),r=t.filter(a=>a.stage===j).sort((a,i)=>f(a.retires,i.retires,-1));return{upcoming:s,retired:r}}function f(t,s,r){return!t&&!s?0:t?s?t<s?-r:t>s?r:0:-1:1}const h="__all__",k=[{key:"active",tag:"ah-tag--success",label:"Active",desc:"Fully supported. No retirement date announced."},{key:"deprecated",tag:"ah-tag--warn",label:"Deprecating",desc:"Still callable, but a retirement date is set. Migrate before that date."},{key:"retired",tag:"ah-tag--danger",label:"Retired",desc:"No longer callable. Requests return 404 model_retired."}],M={deprecated:"ah-tag--warn",retired:"ah-tag--danger"},T={deprecated:"Deprecating",retired:"Retired"};function p(){return e.jsx("span",{className:"ah-unit",children:"â"})}function N({id:t,name:s}){return e.jsx("a",{className:"ah-link",href:`/model/${encodeURIComponent(t)}`,children:s||t})}function v({rows:t,caption:s}){const{t:r}=y();return e.jsx("article",{className:"ah-card ah-card--flat mr-tablecard",children:e.jsx("div",{className:"ah-table-wrap",children:e.jsxs("table",{className:"ah-table",children:[e.jsx("caption",{className:"mr-sr-only",children:s}),e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:r("Model")}),e.jsx("th",{children:r("Author")}),e.jsx("th",{children:r("Status")}),e.jsx("th",{children:r("Announced")}),e.jsx("th",{children:r("Retirement date")}),e.jsx("th",{children:r("Replacement")})]})}),e.jsx("tbody",{children:t.map(a=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx(N,{id:a.id,name:a.name})}),e.jsx("td",{children:a.dev.slug?e.jsx("a",{className:"ah-link",href:`/authors/${a.dev.slug}`,children:a.dev.name}):a.dev.name||e.jsx(p,{})}),e.jsx("td",{children:e.jsx("span",{className:`ah-tag ${M[a.stage]||""}`,children:r(T[a.stage]||a.stage)})}),e.jsx("td",{className:"mr-date",children:a.announced||e.jsx(p,{})}),e.jsx("td",{className:"mr-date",children:a.retires||e.jsx(p,{})}),e.jsx("td",{children:a.successor?a.successorInCatalog?e.jsx(N,{id:a.successor,name:a.successorName}):e.jsx("span",{children:a.successorName}):e.jsx(p,{})})]},a.id))})]})})})}function $({rows:t,providers:s,catalogSize:r}){const{t:a}=y(),[i,l]=x.useState(h),{upcoming:d,retired:c}=x.useMemo(()=>{const n=i===h?t:t.filter(o=>o.dev.name===i);return u(n)},[t,i]),g=x.useMemo(()=>u(t),[t]);return e.jsx("div",{className:"pv-page mr-page",children:e.jsxs("main",{children:[e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsxs("nav",{className:"ah-crumbs","aria-label":"Breadcrumb",children:[e.jsx("a",{className:"ah-link",href:"/models",children:a("Models")}),e.jsx("span",{className:"ah-crumbs__sep",children:"/"}),e.jsx("span",{"aria-current":"page",children:a("Retirements")})]}),e.jsx("h1",{children:a("Model Retirements")}),e.jsx("p",{className:"ah-lead mr-lead",children:a("mr lead")}),e.jsxs("div",{className:"mr-counts",children:[e.jsxs("span",{children:[e.jsx("b",{children:g.upcoming.length})," ",a("scheduled for retirement")]}),e.jsxs("span",{children:[e.jsx("b",{children:g.retired.length})," ",a("already retired")]}),e.jsx("span",{children:e.jsx("a",{className:"ah-link",href:"/models",children:a("Browse all {{count}} models",{count:r})})})]}),e.jsx("article",{className:"ah-card ah-card--flat mr-legend",children:k.map(n=>e.jsxs("div",{className:"mr-legend__item",children:[e.jsx("div",{children:e.jsx("span",{className:`ah-tag ${n.tag}`,children:a(n.label)})}),e.jsx("p",{className:"ah-desc",children:n.key==="retired"?e.jsxs(e.Fragment,{children:[a("No longer callable. Requests return")," ",e.jsx("code",{children:"404 model_retired"}),"."]}):a(n.desc)})]},n.key))})]})}),s.length>1&&e.jsx("section",{className:"ah-section",children:e.jsx("div",{className:"ah-container",children:e.jsxs("div",{className:"ah-filters",role:"group","aria-label":a("Filter by author"),children:[e.jsx("span",{className:"ah-filters__label",children:a("Author")}),e.jsx("button",{type:"button",className:"ah-chip","aria-checked":i===h,role:"radio",onClick:()=>l(h),children:a("All")}),s.map(n=>e.jsx("button",{type:"button",className:"ah-chip","aria-checked":i===n.name,role:"radio",onClick:()=>l(n.name),children:n.name},n.name))]})})}),d.length>0&&e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsxs("div",{className:"mr-head",children:[e.jsx("h2",{children:a("Upcoming retirements")}),e.jsx("p",{className:"ah-meta",children:a("Still callable â migrate before the retirement date")})]}),e.jsx(v,{rows:d,caption:a("Upcoming retirements")})]})}),c.length>0&&e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsxs("div",{className:"mr-head",children:[e.jsx("h2",{children:a("Retired")}),e.jsx("p",{className:"ah-meta",children:a("Detail pages stay online â requests return an error")})]}),e.jsx(v,{rows:c,caption:a("Retired models")}),e.jsx("p",{className:"ah-meta mr-note",children:a("mr dash note")})]})}
1),d.length===0&&c.length===0&&e.jsx("section",{className:"ah-section",children:e.jsx("div",{className:"ah-container",children:e.jsx("p",{className:"ah-meta",children:a("No retirements for this author.")})})})]})})}const C=".mr-page .mr-lead{max-width:88ch;margin-top:var(--space-2)}.mr-page .mr-counts{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-4);margin-top:var(--space-4);font-size:var(--text-14);color:var(--muted)}.mr-page .mr-counts b{color:var(--fg);font-variant-numeric:tabular-nums}.mr-page .mr-legend{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-6);margin-top:var(--space-8)}.mr-page .mr-legend__item{display:flex;flex-direction:column;gap:var(--space-4)}.mr-page .mr-legend code{font-family:var(--font-mono);font-size:var(--text-sm);background:var(--surface-2);border-radius:var(--radius-xs);padding:1px var(--space-1)}.mr-page .mr-head{margin-bottom:var(--space-4)}.mr-page .mr-head .ah-meta{margin-top:var(--space-1)}.mr-page .mr-tablecard{padding:var(--space-2)}.mr-page .mr-date{font-variant-numeric:tabular-nums;white-space:nowrap}.mr-page .mr-note{margin-top:var(--space-3)}.mr-page .mr-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1100px){.mr-page .mr-legend{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.mr-page .mr-legend{grid-template-columns:1fr}}",m=b.siteInfo.domain;function z({data:t,error:s}){if(s?.status&&s.status>=500)return[{title:"Temporarily Unavailable"},{name:"robots",content:"noindex"}];if(s||!t)return[{title:"Not Found"},{name:"robots",content:"noindex"}];const{rows:r}=t,{upcoming:a,retired:i}=u(r),l="Model Retirements - Deprecation Dates & Replacements | AIHubMix",d=`Which AI models AIHubMix is retiring and when. ${a.length} model${a.length===1?"":"s"} scheduled for retirement, ${i.length} already retired, each with its announcement date, retirement date and recommended replacement.`,c=`${m}/models/retirements`;return[{title:l},{name:"description",content:d},{tagName:"link",rel:"canonical",href:c},...E(),...S({title:l,description:d,url:c})]}const W=R(function({loaderData:s}){const{rows:r}=s,{upcoming:a,retired:i}=u(r),l=`${m}/models/retirements`,d={"@type":"WebSite",name:b.siteInfo.siteName,url:m},c=a.concat(i),n={"@context":"https://schema.org","@graph":[{"@type":"CollectionPage",url:l,name:"Model Retirements",inLanguage:"en",isPartOf:d,mainEntity:{"@type":"ItemList",numberOfItems:c.length,itemListElement:c.map((o,_)=>({"@type":"ListItem",position:_+1,name:o.name||o.id,url:`${m}/model/${encodeURIComponent(o.id)}`}))}},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Models",item:`${m}/models`},{"@type":"ListItem",position:2,name:"Retirements",item:l}]}]};return e.jsxs(I,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),e.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),e.jsx($,{...s}),e.jsx("script",{id:L,type:"application/ld+json",dangerouslySetInnerHTML:{__html:w(JSON.stringify(n))}})]})});export{Q as ErrorBoundary,W as default,z as meta};
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.