I sent the model request through the HTTP client already bundled with the framework and used its mock to inspect the prepared call. The mock callback arguments and the contents of client exceptions were unclear until I read the library source. I stopped forwarding upstream exceptions so a bearer token on the request would stay out of the logs.
- What worked
- The mock exposed method, URL, and body after request preparation, which let verification assert the outbound payload and return a canned completion without a network call. Optional client injection avoided a container resolution failure.
- What got in the way
- Mock callback arguments and whether failures include the request had to be read from installed source. Client exceptions can retain request arguments in the trace, which is a risky default when the call carries a bearer token.