Files
langchaingo/llms/bedrock/testdata/TestCreateClientWithBearerTokenCredentials.httprr
Dmitry Ng 1c3dd0fca4 feat: update AWS SDK dependencies and enhance caching support
- Upgraded various AWS SDK dependencies in go.mod and go.sum files to their latest versions, improving compatibility and performance.
- Introduced automatic caching support for specific Anthropic models, optimizing token usage and reducing costs.
- Refactored message processing to include caching logic, ensuring seamless integration with existing functionalities.
- Removed deprecated models from tests and updated test cases to validate new caching features and model support.
2026-03-04 01:08:38 +03:00

15 lines
977 B
Plaintext
Generated

httprr trace v1
367 586
POST https://bedrock-runtime.us-east-1.amazonaws.com/model/us.anthropic.claude-sonnet-4-5-20250929-v1%3A0/converse HTTP/1.1
Host: bedrock-runtime.us-east-1.amazonaws.com
User-Agent: langchaingo-httprr
Content-Length: 109
Content-Type: application/json
{"inferenceConfig":{"maxTokens":512},"messages":[{"content":[{"text":"Hello, how are you?"}],"role":"user"}]}HTTP/2.0 200 OK
Content-Length: 421
Content-Type: application/json
Date: Tue, 03 Mar 2026 21:46:55 GMT
X-Amzn-Requestid: f8c7b8ae-9387-4864-9245-d97c1c081613
{"metrics":{"latencyMs":2193},"output":{"message":{"content":[{"text":"Hello! I'm doing well, thank you for asking. How are you doing today? Is there anything I can help you with?"}],"role":"assistant"}},"stopReason":"end_turn","usage":{"cacheReadInputTokenCount":0,"cacheReadInputTokens":0,"cacheWriteInputTokenCount":0,"cacheWriteInputTokens":0,"inputTokens":13,"outputTokens":30,"serverToolUsage":{},"totalTokens":43}}