I have tried to make trivial calls, the same as shown in the Response Headers example, with both asResponse and withResponse. Both return the generated message, but neither is including the Rate Limit headers. The only headers either is returning are:
The documentation on Rate Limits suggests we can see current usage and limits per API request by reading a set of Response Headers. https://docs.anthropic.com/en/api/rate-limits#response-headers
This repository's README tells us how to read Response Headers. https://github.com/anthropics/anthropic-sdk-typescript?tab=readme-ov-file#accessing-raw-response-data-eg-headers
I have tried to make trivial calls, the same as shown in the Response Headers example, with both
asResponse
andwithResponse
. Both return the generated message, but neither is including the Rate Limit headers. The only headers either is returning are:I have also tried this with both a Haiku model and an Opus model, neither returning the rate limit headers.