AI-powered shortcut from hell

I present to you a shortcut from hell. Well, multiple. But I’ll use this as a sample.

I have this shortcut which uses the On-Device Apple Intelligence model to tell me the average rain/hr from the Get Weather Forecast action. The Use Model action has Return Format set as Number; therefore, I enforce the model to return a number. And it does… until it doesn’t, and instead returns a non-sensical text that’s unrelated to the prompt. Yes, it returns text when enforcing a number-based response. I got a text about Hannibal Lecter, I got a solution for an economics problem, I got one about the Republican party, and, in this example, I got a description of an unknown, mysterious photo.

What’s even weirder is that this only happens if I have another action, such as Show Result, below it. And even weirder than that, the text it gives me is familiar… because I got this answer before when using Apple Intelligence features. It seems to poorly “recycle” old responses. I have seen these responses before when using Apple Intelligence features normally.

And weirder still, the Report a Concern debug logs shows that the model has responded with a number, so I can’t even report this to Apple.

my only workaround so far is to pass the response thru the Number action and use that.

am I perhaps not getting something about how this is supposed to work?

Any insight on this would be appreciated!