The Mechanics of Model Versioning: Why Your AI App Breaks When the Provider Updates the Model
DEV Community

The Mechanics of Model Versioning: Why Your AI App Breaks When the Provider Updates the Model

Your code worked Friday. Monday it returns 400s. Nothing changed in your repo.

The model provider updated something. A parameter got removed. A model ID started serving a different model. A cloud platform retired a model on its own schedule.

Your app broke because you assumed "model ID = contract." It's not. There is no universal versioning standard across LLM providers. Each invented their own scheme.

The Core Problem: 7 Providers, 7 Different Schemes

  • OpenAI: No version header, Model ID = contract
  • Anthropic: Dated header, anthropic-version: 2026-10-21
  • Google: Path versioning, v1 / v1beta
  • Mistral: OpenAPI spec, Pin major.minor
  • Groq: Email + docs
  • Together AI: 3-day redirect, Same ID → different model
  • OpenRouter: Single v1, No pinning

Cloud Platforms:

  • Azure AI Foundry: Own schedule, Auto-upgrade some
  • Amazon Bedrock: Legacy model rules, No auto-migrate
  • Google Vertex AI: Different dates, From vendor

Provider Versioning

Provider Versioning Min Notice (GA) Pinning Method Machine Signals
OpenAI None (model ID) 6 months Snapshot IDs (gpt-4o-2024-08-06) shutdown_date in /v1/models
Anthropic Dated header 60 days anthropic-version: YYYY-MM-DD lifecycle, retires_at in /v1/models
Google Path (v1/v1beta) None published Use v1 path, avoid v1beta Deprecations page table
Mistral OpenAPI spec 6 months Pin major.minor version ID OpenAPI spec diff
Groq Undocumented Preview: short Not documented Changelog page
Together AI Changelog 2-3 weeks (serverless) Not documented Changelog
OpenRouter Single v1 N/A (proxy) Not possible Changelog RSS

Silent Redirects: Behavior Changes Without Errors

Google and Together AI do this. Your code doesn't fail - it just gets different responses.

Google: Automatic Routing (Dec 1, 2026)

# You call this
model = "gemini-2.5-flash"
# Since Dec 1, 2026, you actually get this
# gemini-3.5-flash-lite answers instead
# Prefilled model turns → HTTP 400
# Different tokenization, different costs

No error. No warning in response headers. Your evaluations tuned to 2.5 Flash are now invalid.

Vertex AI divergence: Same model, different retirement dates.

  • Gemini 3.6 Flash: Nov 19, 2026 (Vertex) vs no date (Gemini API)
  • Gemini 2.5 Pro/Flash: Retired Oct 20, 2026 (Vertex) only

Together AI: 3-Day Redirect (Dec 9, 2026)

# These model IDs now redirect to newer versions
deepseek-r1
# → different model
deepseek-v3
# → different model
deepseek-v3-0324
# → different model
kimi-k2
# → different model
mistral-7b-instruct-v0.3
# → different model

Same ID. Different model. Billed at replacement price. Three days notice.

The Anthropic SDK Trap: Dependency Bump = Breaking Change

October 21, 2026. Anthropic released API version 2026-10-21 and new SDK majors that send it by default:

# These versions send the new header automatically
anthropic-python >= 2.0.0
anthropic-typescript >= 1.0.0
anthropic-csharp >= 13.0.0
anthropic-go >= 2.0.0
# ...and Java, PHP, Ruby, CLI

What breaks in 2026-10-21:

# This worked in 2023-06-01, returns 400 in 2026-10-21
client.messages.create(
  model="claude-sonnet-4-5",
  temperature=0.7, # ← REMOVED: returns 400 even at default
  top_p=0.9, # ← REMOVED: returns 400 even at default
  top_k=40, # ← REMOVED: returns 400 even at default
  messages=[...]
)
# Also breaks:
# - document block in assistant message → 400
# - citations array in user message → 400

Fix: Treat SDK upgrade as a code change, not a dependency bump.

# Option 1: Remove sampling params (Claude 4.7+ uses defaults)
client.messages.create(model="claude-sonnet-5-5", messages=[...])
# Option 2: Pin old SDK major + old header
client = Anthropic(default_headers={"anthropic-version": "2023-06-01"})

Cloud Platforms Retire on Their Own Schedule

Anthropic explicitly warns: "If you use a cloud platform, even one that Anthropic operates, check which retirement dates apply to you instead of relying on an email."

Model Anthropic Azure AI Foundry Amazon Bedrock Google Vertex AI
Claude Opus 4.1 Active N/A Jan 8, 2027 (Legacy since Jul 8) N/A
Claude Opus 4.6 Active Feb 2, 2027 N/A N/A
Claude Sonnet 4.5 Nov 30, 2026 N/A N/A N/A
Claude Haiku 4.5 Active Nov 15, 2026 N/A N/A
GPT-4o (2024-05-13) N/A Jan 14, 2027 (→ GPT-5.1) N/A N/A
GPT-4o/4.1 snapshots Jan 14, 2027 Jan 14, 2027 N/A N/A
Gemini 3.6 Flash N/A N/A N/A Nov 19, 2026
Gemini 3.7 Flash N/A N/A N/A Jan 28, 2027
Llama 3.3 70B / 4 Scout N/A Jan 31, 2027 N/A N/A

Key differences:

  • Azure: Auto-upgrades Global Standard deployments, but Provisioned deployments stop working
  • Bedrock: Legacy models - new customers blocked, inactive 15 days → lose access early, no auto-migration
  • Vertex: Retired Gemini 2.5 models Oct 20, 2026 while Gemini API still serves them via redirect

Aggregators: The Hidden Retirement Layer

OpenRouter Single v1, no version headers, no date-based pinning. Models added/removed by upstream providers independently. Changelog = only source of truth (generated from OpenAPI spec). When upstream retires, OpenRouter retires on their schedule.

Perplexity Stopped accepting OpenAI models Oct 24, 2026: gpt-5.4, gpt-5.2, gpt-5.1, gpt-5, gpt-5-mini. Before OpenAI's own retirement dates. No one-to-one replacement named.

Amazon Bedrock / Azure / Vertex Each has independent model lifecycle policies. The vendor's deprecation page ≠ your platform's retirement date.

Machine-Readable Signals: What Actually Exists

Signal OpenAI Anthropic Google Mistral Together OpenRouter
Model list field shutdown_date lifecycle, deprecated_at, retires_at ❌ ❌ ❌ N/A
OpenAPI spec ✅ ✅ ❌ ✅ ❌ ✅ (per release)
Changelog RSS Site-wide (unreliable) ❌ ❌ ❌ ❌ ✅
Deprecation header (RFC 8594) ❌ ❌ ❌ ❌ ❌ ❌
Sunset header (RFC 9745) ❌ ❌ ❌ ❌ ❌ ❌

Reality: No provider sends standard deprecation/sunset headers. You must poll their docs or use a tracker.

Real Incidents (Oct-Dec 2026)

Date Provider Incident Impact
Oct 21 Anthropic SDK majors send 2026-10-21 header temperature / top_p / top_k → 400
Oct 8 Google gemini-3.7/3.5-flash → 3.8/3.6-flash Silent redirect, no shutdown date
Oct 26 Google Generate Content store=true default flip New paid projects store requests by default
Oct 31 DeepSeek Tool billing starts ($0.75/1k calls) Agent loops get new cost line
Oct 31 OpenAI Evals read-only → shutdown Nov 30 Export evals or lose them
Nov 30 Anthropic Claude Sonnet 4.5 retired Requests fail after date
Nov 30 OpenAI Agent Builder + Evals shutdown Migrate to Agents SDK / Promptfoo
Dec 1 Google gemini-2.5-flash/pro → 3.5-flash-lite/3.8-flash Prefilled turns → 400
Dec 3 Google gemini-omni-1.1-flash → 1.2-flash Billed at new rates
Dec 9 Together 6 DeepSeek/Mistral/Kimi models redirect Same ID, different model
Dec 11 OpenAI GPT-5 snapshots + aliases shutdown gpt-5, gpt-5-mini, o3, o3-pro stop

Migration Checklist (Do This Now)

# 1. Inventory: What models + versions do you call?
# Per provider, per service, per environment
cat > model-inventory.csv << 'EOF'
provider,service,model_id,api_version,environment
openai,chat,gpt-4o-2024-08-06,none,prod
anthropic,chat,claude-sonnet-5-5,2026-10-21,prod
google,chat,gemini-3.8-flash,v1beta,prod
mistral,chat,mistral-large-2411,none,prod
EOF
# 2. Pin specific versions (NEVER use 'latest' or bare aliases)
# OpenAI: use snapshot IDs
# Anthropic: send explicit anthropic-version header
# Google: use v1 path, not v1beta
# Mistral: pin major.minor (mistral-large-2411 not mistral-large)
# 3. Subscribe changelogs to shared inbox
# OpenAI: https://developers.openai.com/api/docs/changelog
# Anthropic: https://platform.claude.com/docs/en/release-notes/overview
# Google: https://aistudio.google.com/docs/changelog
# Mistral: https://docs.mistral.ai/resources/release-notes
# Together: https://docs.together.ai/docs/changelog
# OpenRouter: https://openrouter.ai/docs/changelog (RSS)
# 4. Team email for provider accounts (not individual)
# Check: aws/aws, azure, gcp console notifications too
# 5. Weekly: check deprecation pages for YOUR model IDs
# Record shutdown dates in your inventory
# 6. Preview/experimental = short notice, keep fallback
# If you use gemini-*-preview, have a GA model ready
# 7. Test replacement BEFORE notice window closes
# Run your eval suite on the replacement model
# 8. Diff OpenAPI specs in CI (APIBreak does this free)
# npx @apibreak/cli check --spec https://github.com/openai/openai-openapi

What's Missing: The Standards Gap

  • No universal versioning scheme - 7 providers, 7 approaches
  • No deprecation/sunset headers - RFC 8594/9745 ignored
  • Email is not a plan - Team addresses, former employees, cloud divergence
  • Aggregators opaque - OpenRouter, Perplexity, Bedrock, Vertex have independent schedules
  • Silent redirects legal - Google routes, Together redirects, no error signal
  • SDK coupling - Anthropic SDK major = API version change
  • Cost surprises - Redirects to pricier models (Together, Gemini 4 Argon → Carbon)

Quick Takeaways

  • Model ID ≠ contract. Aliases move. Redirects happen. Aggregators retire early.
  • Pin everything: Snapshots (OpenAI), dated headers (Anthropic), paths (Google), major.minor (Mistral).
  • Cloud platform ≠ vendor schedule. Check Bedrock/Vertex/Foundry dates separately.
  • SDK upgrade = code review. Anthropic 2.0+ breaks temperature calls.
  • No standard headers exist. Poll deprecation pages or use APIBreak/Okapi/APIWatch.
  • Test replacements before notice expires. Your eval suite is your safety net.

References

  • APIBreak.dev - How LLM inference providers communicate breaking API changes (accessed 2026-12-04)
  • TeqEngine - AI model changes: releases, deprecations and price changes (accessed 2026-12-05)
  • Infro.io - AI API changes in October 2026 (updated 2026-11-25)
  • Okapi.bot - API breaking changes and deprecations (accessed 2026-12-05)
  • APIWatch - API & MCP change feed (updated 2026-12-05)
  • OpenAI - Deprecations
  • Anthropic - Model deprecations
  • Google - Gemini API deprecations
  • Anthropic - API versioning
  • Mistral - Model lifecycle policy
  • Together AI - Deprecations
  • OpenRouter - API versioning
Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.