← All breaking-change reports

Cloudflare API breaking change: path-removed on /accounts/{account_id}/ai/run/@hf/thebloke/llamaguard-7b-awq

cloudflare · breaking · 2026-03-31 · source: OpenAPI spec diff

What changed

According to the OpenAPI spec diff (cloudflare/cloudflare-oas-b61f904f10c9-to-7abe88500e55-removals), the following surface changed:

path-removed: /accounts/{account_id}/ai/run/@hf/thebloke/llamaguard-7b-awq

cloudflare OAS corridor pair b61f904f10c9 -> 7abe88500e55 (removals subset ingested 2026-08-01)

Who is affected

Delete or reroute every call site that invokes the delisted llamaguard-7b-awq model: the route now returns model-not-found.

To find out whether your repo is hit — file and line number, no code leaving your machine:

npx mendapi scan --repo .

How to fix it

Migration path:

Delete or reroute every call site that invokes the delisted llamaguard-7b-awq model: the route now returns model-not-found. Removing the dead env.AI.run call (and any branch that gates on its output) is the mechanical mend; choosing a replacement moderation model is a documented product decision, so the codemod stops at deleting the discontinued invocation and flagging the call site.

Before:

const guard = await env.AI.run('@hf/thebloke/llamaguard-7b-awq', { messages });

After:

// llamaguard-7b-awq was delisted upstream; moderation call removed.
// TODO(product): pick a replacement moderation model if gating is still required.

Replacement data source: guard/moderation-class models remain available under other ai/run slugs (e.g. @cf/meta family) listed in the NEW spec model catalog

With your own LLM key configured (BYO compute — mendapi never proxies your credentials), npx mendapi llmfix turns this guide into a reviewable draft patch for your repo.

Detected and tracked by mendapi — Dependabot for every API you depend on. Scans run locally; your code never leaves your machine.

Related

Change data is recorded from upstream provider releases, changelogs and OpenAPI spec diffs; every article names its source.