Describe the bug
Other generators normalize token usage (input/output tokens) into meta.
In non-streaming mode, tokens can be accessed from raw meta[ResponseMetadata].
In streaming node, token usage is discarded and not accessible.
To Reproduce
Run a request against an Anthropic model with AmazonBedrockGenerator.
Describe your environment (please complete the following information):
- OS: [e.g. iOS]
- Haystack version:
- Integration version:
Describe the bug
Other generators normalize token usage (input/output tokens) into
meta.In non-streaming mode, tokens can be accessed from raw
meta[ResponseMetadata].In streaming node, token usage is discarded and not accessible.
To Reproduce
Run a request against an Anthropic model with AmazonBedrockGenerator.
Describe your environment (please complete the following information):