When an API call fails, the terminal output now includes the HTTP status code in the header line and, for 400 errors, the response body from the provider (truncated to 300 chars). Makes it much easier to diagnose issues like invalid model names or malformed requests that were previously hidden behind generic error messages. Salvaged from PR #2646 by Mibayy. Fixes #2644.
371 KiB
371 KiB