mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
3bcbae490c
Add an optional requestMetadata field to BedrockOptions that forwards key-value pairs to the Bedrock Converse API ConverseStreamCommand. Tags appear in AWS Cost Explorer split cost allocation data, enabling callers to attribute inference costs to specific applications or contexts. Changes: - Add requestMetadata?: Record<string, string> to BedrockOptions with JSDoc documenting AWS constraints (max 50 pairs, key 64 chars, value 256 chars, no aws: prefix) - Pass requestMetadata to commandInput via conditional spread to avoid sending undefined when omitted - Export BedrockOptions from package root (consistent with other provider option types) - Add E2E tests: metadata forwarded to SDK payload, and omitted when not provided closes #2510
3bcbae490c
ยท
2026-03-22 19:05:55 +01:00
History