mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-18 18:54:43 -04:00
1c3dd0fca4
- 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.
20 lines
12 KiB
Plaintext
Generated
20 lines
12 KiB
Plaintext
Generated
httprr trace v1
|
||
536 11183
|
||
POST https://bedrock-runtime.us-east-1.amazonaws.com/model/us.anthropic.claude-sonnet-4-5-20250929-v1%3A0/converse-stream HTTP/1.1
|
||
Host: bedrock-runtime.us-east-1.amazonaws.com
|
||
User-Agent: langchaingo-httprr
|
||
Content-Length: 225
|
||
Authorization: AWS4-HMAC-SHA256 test-api-key
|
||
Content-Type: application/json
|
||
|
||
{"additionalModelRequestFields":{"thinking":{"type":"enabled","budget_tokens":2048}},"inferenceConfig":{"maxTokens":4096,"temperature":1},"messages":[{"content":[{"text":"What is 5 + 3? Think step by step."}],"role":"user"}]}HTTP/2.0 200 OK
|
||
Content-Length: 10998
|
||
Content-Type: application/vnd.amazon.eventstream
|
||
Date: Tue, 03 Mar 2026 09:54:20 GMT
|
||
X-Amzn-Requestid: ad1f2fa6-5c96-4e10-8582-0cc96525509d
|
||
|
||
|