Skip to content

[Workers AI] Add Model Deprecations reference page with redirects#30768

Open
mchenco wants to merge 2 commits into
productionfrom
mchen/wai-depr-docs-v2
Open

[Workers AI] Add Model Deprecations reference page with redirects#30768
mchenco wants to merge 2 commits into
productionfrom
mchen/wai-depr-docs-v2

Conversation

@mchenco

@mchenco mchenco commented May 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add deprecation data source (src/util/deprecated-models.ts)
  • Add reference page listing deprecated and planned-deprecation models (src/content/docs/workers-ai/platform/model-deprecations.mdx)
  • Add reusable content component (src/components/models/DeprecatedModelPage.astro)
  • Add deprecation banner on planned-deprecation model pages (src/components/models/ModelDetailPage.astro)
  • Redirect deprecated model URLs to reference page (public/__redirects)

Screenshots (optional)

Screenshot 2026-05-12 at 1 40 56 PM

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/public/__redirects @cloudflare/content-engineering, @cloudflare/product-owners
*.astro @cloudflare/content-engineering, @kodster28
/src/content/docs/workers-ai/ @rita3ko, @craigsdennis, @mchenco, @zeke, @superhighfives, @bfirsh, @mattrothenberg, @ethulia, @cloudflare/product-owners
*.ts @cloudflare/content-engineering, @kodster28

@ask-bonk ask-bonk Bot added documentation Documentation edits product:workers Related to Workers product content:new Request for new/missing content labels May 12, 2026

@ask-bonk ask-bonk Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Labels applied: , , .

Verdict: 1 suggestion to address before merge.

Summary of changes

  • New data source tracking deprecated and planned-deprecation models.
  • New reference page rendered via .
  • now shows a caution banner on planned-deprecation model pages.
  • Redirects added for 18 deprecated model URLs (+ updated target for existing redirect).

Issues

  • MEDIUM line 41: The caution banner assumes the user arrived via a redirect ("You followed a link..."). This is inaccurate for visitors navigating directly to the reference page. See inline suggestion.

Comment thread src/components/models/DeprecatedModelPage.astro Outdated
- Add deprecation data source (src/util/deprecated-models.ts)
- Add reference page listing deprecated and planned-deprecation models
  (src/content/docs/workers-ai/platform/model-deprecations.mdx)
- Add reusable content component (src/components/models/DeprecatedModelPage.astro)
- Add deprecation banner on planned-deprecation model pages
  (src/components/models/ModelDetailPage.astro)
- Redirect deprecated model URLs to reference page
  (public/__redirects)
@ask-bonk

ask-bonk Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Review summary:

Verdict: 1 suggestion to address before merge.

Summary of changes

  • New src/util/deprecated-models.ts data source tracking deprecated and planned-deprecation models.
  • New src/content/docs/workers-ai/platform/model-deprecations.mdx reference page rendered via DeprecatedModelPage.astro.
  • ModelDetailPage.astro now shows a caution banner on planned-deprecation model pages.
  • Redirects added for 18 deprecated model URLs (+ updated target for existing openchat_3.5-awq redirect).

Issues

  • MEDIUM src/components/models/DeprecatedModelPage.astro line 41: The caution banner assumes the user arrived via a redirect ("You followed a link..."). This is inaccurate for visitors navigating directly to the reference page. Inline suggestion posted above.

@mchenco mchenco force-pushed the mchen/wai-depr-docs-v2 branch from 9831c2f to 4290c07 Compare May 12, 2026 18:13
@ask-bonk

ask-bonk Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Review complete.

Labels applied: documentation, product:workers, content:new

What changed

  • New src/util/deprecated-models.ts data source tracking deprecated and planned-deprecation models.
  • New src/content/docs/workers-ai/platform/model-deprecations.mdx reference page, rendered by the new DeprecatedModelPage.astro component.
  • ModelDetailPage.astro now conditionally renders a deprecation caution banner on model pages with planned-deprecation status.
  • Redirects added for 18 deprecated model URLs to the new reference page, plus an updated target for the pre-existing openchat_3.5-awq redirect.

Issue flagged

  • MEDIUMsrc/components/models/DeprecatedModelPage.astro line 41: The caution aside reads "You followed a link to a model that is no longer available." This is inaccurate for visitors who navigate directly to the reference page. I posted an inline suggestion to reword it so it works for both redirected users and direct visitors.

Everything else looked solid: frontmatter is valid, redirect formatting is correct, the linked changelog entry exists, and MDX/component usage follows repo conventions.

github run

Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

@mchenco mchenco enabled auto-merge (squash) May 12, 2026 22:08

@colbywhite colbywhite left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mchenco , unfortunately, I don't think having a deprecation process built on publid/__redirects is going to work moving forward.

If I read this right, every model going forward that is deprecated by your team will require a change to public/__redirects, and thus will require review from @cloudflare/content-engineering (or @cloudflare/product-owners). I don't think you're looking to be bottlenecked like that.

There are other alternatives. If you really prefer the redirect strategy, you can dynamically redirect in your own file (ModelDetailPage perhaps?). I don't think we have a preference of your strategy, it just shouldn't involve public/__redirects.

Also, you currently have content collections in src/content/workers-ai-models/*.json and src/content/catalog-models/*.json. It might be easier for you to maintain long term if you put the deprecation info in the relevant json file. If you prefer to store the similar information in a TypeScript constant, be sure to add src/util/deprecated-models.ts to the code owners as owned by your team. And I think everything in src/components/models is AI-related as well, right? That's another one we likely want to get in the code owners file for your team.

@github-actions

Copy link
Copy Markdown
Contributor

Hey there, we've marked this pull request as stale because there's no recent activity on it. This label helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant).

@github-actions github-actions Bot added the stale label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content:new Request for new/missing content documentation Documentation edits product:workers Related to Workers product product:workers-ai Workers AI: https://developers.cloudflare.com/workers-ai/ size/m stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants