Hongdam หงส์ดำLINE

Last mile · · 5 minutes to read

Lovable retires Claude Haiku 4.5 on 2 December: requests that set a temperature fail

Lovable เลิกให้บริการ Claude Haiku 4.5 วันที่ 2 ธันวาคม: คำขอที่ตั้งค่า temperature จะล้มเหลว

From 00:00 UTC on 2 December, Lovable sends an app's Haiku 4.5 requests to Haiku 5.5, which rejects a custom temperature. Anthropic still lists Haiku 4.5 as active. Of 7 public apps we read, 1 sends one.

A Lovable app that calls Claude Haiku 4.5 changes model at 00:00 UTC on 2 December 2026, which is 07:00 that morning in Thailand 2. Lovable sends those requests to Claude Haiku 5.5 from then on 1. Haiku 5.5 rejects some settings Haiku 4.5 accepted, a custom temperature among them, and Lovable's changelog says requests that send them fail after the date 1. The entry is dated 26 November, six days before.

Lovable's date, not Anthropic's

Anthropic's deprecations page, read today, lists claude-haiku-4-5-20251001 as Active, with retirement "Not sooner than October 15, 2026" and no date set 5. Lovable's page on deprecated models says Lovable can retire a model before its provider does, and tells readers to go by its own dates 2. An app that calls Anthropic with its own API key is untouched tomorrow. An app that calls Haiku 4.5 through Lovable's built-in AI connector (its gateway, which passes an app's AI requests on to the model) moves.

Lovable sorts retired models into two groups: Replaced, where requests go to another model and the app runs on with no code change, and Rejected, where requests fail 2. Haiku 4.5 is listed as replaced, with a paragraph under the table saying that some of its requests fail anyway 2.

Four settings Haiku 5.5 turns away

From Anthropic's migration guide and its list of breaking changes, read today 34:

A request that sendsOn Haiku 4.5On Haiku 5.5
temperature, top_p or top_k (how varied the replies are)acceptedcan return an error 4; the guide says to remove them 3
thinking with budget_tokens (a fixed allowance for reasoning before the answer)accepted400 error 3
A last message with the role assistant, for the model to continue (a prefill)accepted when thinking is off400 error 3
The computer_20250124 toolaccepted400 error 3

Which status code Lovable's gateway passes back to the app is unknown: its pages say the requests fail and stop there 12. We have no Lovable project that calls Haiku 4.5, so the failure is Lovable's statement and not our measurement.

Two changes that raise no error

Haiku 5.5 thinks before answering unless told otherwise, and thinking tokens count toward max_tokens, the cap on a reply's length 3. A request with a small cap can stop after the thinking and before any text 3. The request succeeds and carries no answer text.

The reply can also begin with a thinking block. Code that reads the first block as the answer reads the wrong one; Anthropic's guide says to pick blocks by their type 3.

Seven public apps: one sends a temperature, two cap replies at 600 tokens or less

Measured 1 December 2026 with GitHub code search: six queries pairing a Haiku 4.5 model name with Lovable's gateway address or its LOVABLE_API_KEY variable. They returned 306 files in 184 public repositories; 127 were code that named both. Most of those call Anthropic or another router for Haiku and use Lovable's gateway for other models. We read the rest by hand. Seven repositories send a Haiku 4.5 id straight to ai.gateway.lovable.dev.

Of those 7 repositoriesCount
Send temperature on the Haiku call1
Send a thinking budget0
Cap the reply at 600 tokens or fewer2
Read the reply without checking the HTTP status1

The repository that sends temperature: 0.2 is also the one that skips the status check and caps the reply at 300 tokens. If the request fails as Lovable says, that code reads an empty string and reports no error. Seven is a small sample, and code search sees only public repositories; private projects are not counted.

Find it in your own project

In a project synced to GitHub, from its folder:

grep -rnE "claude-haiku-4[-.]5" --include='*.ts' --include='*.tsx' src supabase
grep -rnE "temperature|top_p|topP|top_k|topK|budget_tokens|budgetTokens" --include='*.ts' --include='*.tsx' src supabase

Run today over the files from the search, the first pattern matched 152 and the second matched 55 of those. A hit on both in one file needs a look: the setting may sit on a call to another model.

Without the code, open More, then AI, in the project. The AI activity list shows the model behind each request 2. After the date that list shows the replacement, so today is the day it still says Haiku 4.5 2.

The fix is a prompt and a publish

Lovable's page gives the prompt 2:

Replace any deprecated AI models in this app with current ones.

Lovable edits the backend code, and the published app changes only after Publish; until then the new model runs in the preview alone 2. Lovable does not change a model in an app's code by itself 2.

By hand, a call in the OpenAI chat format changes like this. Before:

body: JSON.stringify({
  model: "anthropic/claude-haiku-4-5",
  max_tokens: 300,
  temperature: 0.2,
  messages,
}),

After:

const res = await fetch("https://ai.gateway.lovable.dev/v1/chat/completions", {
  method: "POST",
  headers: { Authorization: `Bearer ${key}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "anthropic/claude-haiku-5-5",
    max_tokens: 2000,
    messages,
  }),
});
if (!res.ok) throw new Error(`AI gateway ${res.status}: ${await res.text()}`);

The id anthropic/claude-haiku-5-5 is from Lovable's changelog 1. The 2,000 is our number, picked to leave room for thinking, and the code is untested against the gateway for the reason above. Where a low temperature stood in for "answer the same way each time", Anthropic's guide points to the prompt, and to structured outputs for a fixed format 3.

The same text costs about an eighth as much

Anthropic's prices, read today: Haiku 4.5 US$1 per million input tokens and US$5 per million output; Haiku 5.5 US$0.10 and US$0.50 for prompts up to 100,000 tokens, US$0.50 and US$2.50 above that 6. Haiku 5.5 counts the same text as roughly 30 percent more tokens 3. Lovable bills an app's AI requests in credits at rates based on the provider's prices 7.

Input cost of text that was 1 million tokens on Haiku 4.5 · lower is better
Haiku 4.51.0 US$
Haiku 5.5, prompt over 100,000 tokens0.65 US$
Haiku 5.5, prompt up to 100,000 tokens0.13 US$
Computed 1 December 2026 from Anthropic's price list and its figure of about 30 percent more tokens. Thinking tokens, billed as output, are not counted.

A 2,000 by 1,500 pixel image costs about 2.5 times the visual tokens on Haiku 5.5 3, so an app that reads photos saves less.

Next dates on Lovable's list

From the deprecated-models page, read today 2. Each takes effect at 00:00 UTC.

DateModelAfter the date
1 December 2026GPT Image 1 Minirequests go to GPT Image 2.5 Flare
2 December 2026Claude Haiku 4.5requests go to Claude Haiku 5.5
11 December 2026GPT-5, GPT-5 mini, GPT-5 nanorequests go to GPT-5.6 Sol, Terra, Luna
6 January 2027GPT-4o mini TTSrequests fail
28 January 2027Gemini 3.7 Flashrequests go to Gemini 3.8 Flash

Lovable emails a project's owner once a model the app calls has a retirement date, and its page says that warning can be short 2. Checking which models an AI-written app calls, and moving them before a date like this one, is part of the last-mile work we sell 8.

Sources

  1. Lovable changelog docs.lovable.dev
  2. Replace deprecated AI models in your app · Lovable docs.lovable.dev
  3. Claude Haiku 5.5 migration guide platform.claude.com
  4. What's new in Claude Haiku 5.5 platform.claude.com
  5. Model deprecations · Claude platform.claude.com
  6. Pricing · Claude platform.claude.com
  7. AI features for your app · Lovable docs.lovable.dev
  8. Finish an app an AI tool wrote · Hongdam hongdam.net

Hongdam Studio services on this topic