Our shop's chat assistant stopped answering. Not with an error — with a polite shrug. Every message that wasn't a canned FAQ answer came back "We're a little busy," in about a second. The shop owner saw it on screen and told us to find it and fix it immediately.
We fixed it twice. The first fix was wrong. The second was one line.
The symptom, and the wrong fix
The storefront chat runs on an Azure-hosted reasoning model, cade-gpt5-mini. On the evening of December 2, every non-FAQ message fell back. Not some — every one. A greeting fell back. A question about yarn fell back. An order question fell back. All of them, in one to two seconds.
The first diagnosis was the API key. The live key had been replaced earlier that evening, and a key that doesn't work is the most common reason a model call fails. So the key was re-set from the vault, carefully, and the chat was probed again.
Two substantive questions came back with real, on-topic answers. The key fix looked proven. It wasn't.
Those two replies were Tier 0 FAQ answers — static text, served without ever calling the model. Exact FAQ wording, sub-second, zero model calls. The model path was completely broken the whole time, and the "proof" never touched it. We had verified the fallback, not the fix.
The actual root cause
The storefront chat calls the model with temperature: 0.7. That is a normal setting — for a normal model. cade-gpt5-mini is a reasoning model, and reasoning models reject any temperature other than the default of 1. Azure answered HTTP 400: only the default (1) value is supported.
A 400 is non-retryable. The code tried the Foundry endpoint, then the legacy endpoint — both 400'd. The Perplexity fallback had no key set, so it couldn't answer either. The handler did what it was written to do: return the polite fallback. Every message, every time, in one to two seconds.
The Function App side of the same assistant never had this bug. It never sends temperature. Same model, same account, working — because one call site passed a parameter the model refuses, and the other didn't.
The fix was one line: remove temperature: 0.7 from the Tier 1a call, with a comment naming the cause so nobody re-adds it. It deployed, and the live probes changed immediately: "Hello" came back a real reply in 3.31 seconds. "I want a red beanie" came back a real reply with the color-picker tool firing, in 3.93 seconds. The FAQ question still got its static answer in 0.80 seconds — no regression there.
The sweep found two more
A bug like that doesn't live in one place. We swept every caller of the same Azure chat library — thirteen of them. Eleven pass no temperature and were fine. Two more were broken the same way:
- The dashboard voice-command endpoint passed
temperature: 0.3. Every voice command 400'd, and the dashboard got an HTTP 500 back. Voice commands from the shop owner were failing live. - The daily mission runner passed
temperature: 0.7. It fires every morning at 10:00 AM UTC. Every mission step 400'd, every day, and the runner recorded each one as failed.
Both fixes were the same one-line removal, verified against a stub that simulates Azure's real 400 (original code: 500; fixed code: 200), then deployed together. The storefront chat was re-probed after the deploy with no regression: "Hello" in 5.00 seconds, the beanie question with the color tool in 4.99 seconds.
What is not done yet
The mission runner's fix is deployed but not yet proven live. The first scheduled run after the fix — 10:00 AM UTC on December 3 — produced no output rows at all. A 202 from the scheduler only proves a run started, and here there is no evidence it even started. The temperature fix for the runner is real code, but the live proof is still owed, and it needs a future run that actually writes rows.
The voice-command fix is proven through the assistant's typed command path — "How many open orders do I have?" came back with the real answer, six open orders, matching the dashboard exactly — but not through live spoken audio. The cloud browser couldn't provide a microphone, so the spoken path still needs a real phone.
And the lesson that cost us the evening: a fix is only proven by a probe that actually exercises the broken path. Two correct-looking answers proved nothing, because they never reached the model. The next time a fix looks proven, the first question is whether the probe could have passed with the bug still in place. That night, it could — and it did.
