Fix token refresh for HTTP requests (#56559)

Code had been assuming (erroneously, but understandably) that
LlmApiToken::acquire would give them a valid token.

This is not true, as those tokens expire and you must call refresh
explicitly.

Add some helpers to do the retry for you, and rename acquire to cached
to be
clearer about the intent.

Closes #ISSUE

Release Notes:

- Fixed some rare cases where API requests would fail with Unauthorized
54188321beConrad Irwin committed on 5/12/2026, 7:40:00 PM· committed by GitHubparent64f6247
9 files changedLine totals unavailable