|
| 1 | +--- |
| 2 | +import { Aside } from "~/components"; |
| 3 | +import { DEPRECATED_MODELS } from "~/util/deprecated-models"; |
| 4 | +
|
| 5 | +// Group models by deprecation date |
| 6 | +const deprecated = DEPRECATED_MODELS.filter((m) => m.status === "deprecated"); |
| 7 | +const planned = DEPRECATED_MODELS.filter( |
| 8 | + (m) => m.status === "planned-deprecation", |
| 9 | +); |
| 10 | +
|
| 11 | +const byDateDeprecated = deprecated.reduce( |
| 12 | + (acc, m) => { |
| 13 | + acc[m.deprecationDate] = acc[m.deprecationDate] || []; |
| 14 | + acc[m.deprecationDate].push(m); |
| 15 | + return acc; |
| 16 | + }, |
| 17 | + {} as Record<string, typeof deprecated>, |
| 18 | +); |
| 19 | +
|
| 20 | +const byDatePlanned = planned.reduce( |
| 21 | + (acc, m) => { |
| 22 | + acc[m.deprecationDate] = acc[m.deprecationDate] || []; |
| 23 | + acc[m.deprecationDate].push(m); |
| 24 | + return acc; |
| 25 | + }, |
| 26 | + {} as Record<string, typeof planned>, |
| 27 | +); |
| 28 | +
|
| 29 | +function fmtDate(dateStr: string): string { |
| 30 | + return new Date(`${dateStr}T12:00:00Z`).toLocaleDateString("en-US", { |
| 31 | + year: "numeric", |
| 32 | + month: "long", |
| 33 | + day: "numeric", |
| 34 | + timeZone: "UTC", |
| 35 | + }); |
| 36 | +} |
| 37 | +--- |
| 38 | + |
| 39 | +<Aside type="caution"> |
| 40 | + <p> |
| 41 | + You followed a link to a model that is no longer available. Refer to the |
| 42 | + lists below for deprecated models and their status and recommended |
| 43 | + replacements. |
| 44 | + </p> |
| 45 | +</Aside> |
| 46 | + |
| 47 | +<p> |
| 48 | + We refresh the Workers AI model catalog to make room for newer |
| 49 | + releases and to focus on the best-performing models. When a model is |
| 50 | + deprecated, it will no longer be available for inference and existing |
| 51 | + requests will return an error. Please update your applications before the |
| 52 | + listed dates to avoid disruption. |
| 53 | +</p> |
| 54 | + |
| 55 | +<h2 id="replacements">Recommended replacements</h2> |
| 56 | + |
| 57 | +<p> |
| 58 | + We recommend migrating to one of the following models, depending on your use |
| 59 | + case. For the full list of available models, refer to the{" "} |
| 60 | + <a href="/workers-ai/models/">Workers AI model catalog</a>. |
| 61 | +</p> |
| 62 | + |
| 63 | +<div class="not-content mt-4 grid grid-cols-1 gap-4 md:grid-cols-2"> |
| 64 | + { |
| 65 | + [ |
| 66 | + { |
| 67 | + name: "@cf/moonshotai/kimi-k2.6", |
| 68 | + displayName: "Kimi K2.6", |
| 69 | + url: "/workers-ai/models/kimi-k2.6/", |
| 70 | + description: |
| 71 | + "Flagship multimodal model with advanced reasoning, tool calling, and vision capabilities.", |
| 72 | + }, |
| 73 | + { |
| 74 | + name: "@cf/zai-org/glm-4.7-flash", |
| 75 | + displayName: "GLM 4.7 Flash", |
| 76 | + url: "/workers-ai/models/glm-4.7-flash/", |
| 77 | + description: |
| 78 | + "Fast multilingual model with multi-turn tool calling and coding capabilities.", |
| 79 | + }, |
| 80 | + { |
| 81 | + name: "@cf/openai/gpt-oss-120b", |
| 82 | + displayName: "GPT-OSS 120B", |
| 83 | + url: "/workers-ai/models/gpt-oss-120b/", |
| 84 | + description: |
| 85 | + "Open-source reasoning model with strong performance on complex tasks.", |
| 86 | + }, |
| 87 | + { |
| 88 | + name: "@cf/meta/llama-4-scout-17b-16e-instruct", |
| 89 | + displayName: "Llama 4 Scout 17B 16E Instruct", |
| 90 | + url: "/workers-ai/models/llama-4-scout-17b-16e-instruct/", |
| 91 | + description: |
| 92 | + "Efficient mixture-of-experts model with strong multilingual support.", |
| 93 | + }, |
| 94 | + ].map((replacement) => ( |
| 95 | + <a |
| 96 | + href={replacement.url} |
| 97 | + class="flex flex-col rounded-lg border border-gray-200 p-4 no-underline transition-colors hover:bg-gray-50 dark:border-gray-700 dark:hover:bg-gray-800/50" |
| 98 | + > |
| 99 | + <span class="text-base font-semibold text-gray-900 dark:text-gray-100"> |
| 100 | + {replacement.displayName} |
| 101 | + </span> |
| 102 | + <span class="mt-1 text-xs font-mono text-gray-500"> |
| 103 | + {replacement.name} |
| 104 | + </span> |
| 105 | + <span class="mt-2 text-sm text-gray-600 dark:text-gray-400"> |
| 106 | + {replacement.description} |
| 107 | + </span> |
| 108 | + </a> |
| 109 | + )) |
| 110 | + } |
| 111 | +</div> |
| 112 | + |
| 113 | +{ |
| 114 | + Object.keys(byDatePlanned).length > 0 && ( |
| 115 | + <> |
| 116 | + <h2 id="planned">Planned deprecations</h2> |
| 117 | + <p> |
| 118 | + The following models are scheduled for deprecation. Please update your |
| 119 | + applications before the listed dates to avoid disruption. |
| 120 | + </p> |
| 121 | + {Object.entries(byDatePlanned) |
| 122 | + .sort(([a], [b]) => a.localeCompare(b)) |
| 123 | + .map(([date, models]) => ( |
| 124 | + <div class="mt-4"> |
| 125 | + <h3> |
| 126 | + <a href="/changelog/post/2026-05-08-planned-model-deprecations/"> |
| 127 | + {fmtDate(date)} |
| 128 | + </a> |
| 129 | + </h3> |
| 130 | + <ul> |
| 131 | + {models.map((m) => ( |
| 132 | + <li> |
| 133 | + <code class="text-sm">{m.name}</code> |
| 134 | + {m.slug === "kimi-k2.5" && ( |
| 135 | + <> |
| 136 | + {" "}→{" "} |
| 137 | + <code class="text-sm"> |
| 138 | + @cf/moonshotai/kimi-k2.6 |
| 139 | + </code>{" "} |
| 140 | + (alias) |
| 141 | + </> |
| 142 | + )} |
| 143 | + </li> |
| 144 | + ))} |
| 145 | + </ul> |
| 146 | + </div> |
| 147 | + ))} |
| 148 | + </> |
| 149 | + ) |
| 150 | +} |
| 151 | + |
| 152 | +{ |
| 153 | + Object.keys(byDateDeprecated).length > 0 && ( |
| 154 | + <> |
| 155 | + <h2 id="deprecated">Deprecated models</h2> |
| 156 | + <p> |
| 157 | + The following models are no longer available. If you still have |
| 158 | + references to them, migrate to the suggested replacements. |
| 159 | + </p> |
| 160 | + {Object.entries(byDateDeprecated) |
| 161 | + .sort(([a], [b]) => b.localeCompare(a)) |
| 162 | + .map(([date, models]) => ( |
| 163 | + <div class="mt-4"> |
| 164 | + <h3>{fmtDate(date)}</h3> |
| 165 | + <ul> |
| 166 | + {models.map((m) => ( |
| 167 | + <li> |
| 168 | + <code class="text-sm">{m.name}</code> |
| 169 | + </li> |
| 170 | + ))} |
| 171 | + </ul> |
| 172 | + </div> |
| 173 | + ))} |
| 174 | + </> |
| 175 | + ) |
| 176 | +} |
0 commit comments