all: update tests for claude 4
diff --git a/llm/conversation/testdata/basic_convo.httprr b/llm/conversation/testdata/basic_convo.httprr
index 663de8d..7f9886d 100644
--- a/llm/conversation/testdata/basic_convo.httprr
+++ b/llm/conversation/testdata/basic_convo.httprr
@@ -1,14 +1,14 @@
httprr trace v1
-457 1329
+455 1424
POST https://api.anthropic.com/v1/messages HTTP/1.1
Host: api.anthropic.com
User-Agent: Go-http-client/1.1
-Content-Length: 261
+Content-Length: 259
Anthropic-Version: 2023-06-01
Content-Type: application/json
{
- "model": "claude-3-7-sonnet-20250219",
+ "model": "claude-sonnet-4-20250514",
"messages": [
{
"role": "user",
@@ -28,35 +28,36 @@
Anthropic-Organization-Id: 3c473a21-7208-450a-a9f8-80aebda45c1b
Anthropic-Ratelimit-Input-Tokens-Limit: 200000
Anthropic-Ratelimit-Input-Tokens-Remaining: 200000
-Anthropic-Ratelimit-Input-Tokens-Reset: 2025-03-11T17:45:06Z
+Anthropic-Ratelimit-Input-Tokens-Reset: 2025-05-24T19:27:38Z
Anthropic-Ratelimit-Output-Tokens-Limit: 80000
-Anthropic-Ratelimit-Output-Tokens-Remaining: 79000
-Anthropic-Ratelimit-Output-Tokens-Reset: 2025-03-11T17:45:07Z
+Anthropic-Ratelimit-Output-Tokens-Remaining: 80000
+Anthropic-Ratelimit-Output-Tokens-Reset: 2025-05-24T19:27:38Z
Anthropic-Ratelimit-Requests-Limit: 4000
Anthropic-Ratelimit-Requests-Remaining: 3999
-Anthropic-Ratelimit-Requests-Reset: 2025-03-11T17:45:05Z
+Anthropic-Ratelimit-Requests-Reset: 2025-05-24T19:27:36Z
Anthropic-Ratelimit-Tokens-Limit: 280000
-Anthropic-Ratelimit-Tokens-Remaining: 279000
-Anthropic-Ratelimit-Tokens-Reset: 2025-03-11T17:45:06Z
+Anthropic-Ratelimit-Tokens-Remaining: 280000
+Anthropic-Ratelimit-Tokens-Reset: 2025-05-24T19:27:38Z
Cf-Cache-Status: DYNAMIC
-Cf-Ray: 91ecdd10fdc3f97f-SJC
+Cf-Ray: 944f30fd0f0a15d4-SJC
Content-Type: application/json
-Date: Tue, 11 Mar 2025 17:45:07 GMT
-Request-Id: req_01LBtxMdNzxDcDVPGJSh7giv
+Date: Sat, 24 May 2025 19:27:38 GMT
+Request-Id: req_011CPSuX337qwfNzNzGSwG3b
Server: cloudflare
+Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Via: 1.1 google
X-Robots-Tag: none
-{"id":"msg_01S1uUyUsTaKPBKuDUGGX8J2","type":"message","role":"assistant","model":"claude-3-7-sonnet-20250219","content":[{"type":"text","text":"Hello, Cornelius! It's nice to meet you. How are you doing today? Is there something I can help you with?"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":15,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":31}}779 1286
+{"id":"msg_01L127Hi3H8X613Fh8HojDgk","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"Hello Cornelius! It's nice to meet you. How are you doing today? Is there anything I can help you with?"}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":15,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":30,"service_tier":"standard"}}775 1394
POST https://api.anthropic.com/v1/messages HTTP/1.1
Host: api.anthropic.com
User-Agent: Go-http-client/1.1
-Content-Length: 583
+Content-Length: 579
Anthropic-Version: 2023-06-01
Content-Type: application/json
{
- "model": "claude-3-7-sonnet-20250219",
+ "model": "claude-sonnet-4-20250514",
"messages": [
{
"role": "user",
@@ -72,7 +73,7 @@
"content": [
{
"type": "text",
- "text": "Hello, Cornelius! It's nice to meet you. How are you doing today? Is there something I can help you with?"
+ "text": "Hello Cornelius! It's nice to meet you. How are you doing today? Is there anything I can help you with?"
}
]
},
@@ -94,23 +95,24 @@
Anthropic-Organization-Id: 3c473a21-7208-450a-a9f8-80aebda45c1b
Anthropic-Ratelimit-Input-Tokens-Limit: 200000
Anthropic-Ratelimit-Input-Tokens-Remaining: 200000
-Anthropic-Ratelimit-Input-Tokens-Reset: 2025-03-11T17:45:07Z
+Anthropic-Ratelimit-Input-Tokens-Reset: 2025-05-24T19:27:39Z
Anthropic-Ratelimit-Output-Tokens-Limit: 80000
Anthropic-Ratelimit-Output-Tokens-Remaining: 80000
-Anthropic-Ratelimit-Output-Tokens-Reset: 2025-03-11T17:45:07Z
+Anthropic-Ratelimit-Output-Tokens-Reset: 2025-05-24T19:27:40Z
Anthropic-Ratelimit-Requests-Limit: 4000
Anthropic-Ratelimit-Requests-Remaining: 3999
-Anthropic-Ratelimit-Requests-Reset: 2025-03-11T17:45:07Z
+Anthropic-Ratelimit-Requests-Reset: 2025-05-24T19:27:38Z
Anthropic-Ratelimit-Tokens-Limit: 280000
Anthropic-Ratelimit-Tokens-Remaining: 280000
-Anthropic-Ratelimit-Tokens-Reset: 2025-03-11T17:45:07Z
+Anthropic-Ratelimit-Tokens-Reset: 2025-05-24T19:27:39Z
Cf-Cache-Status: DYNAMIC
-Cf-Ray: 91ecdd1ae9a6f97f-SJC
+Cf-Ray: 944f31098c9e15d4-SJC
Content-Type: application/json
-Date: Tue, 11 Mar 2025 17:45:07 GMT
-Request-Id: req_01MBf3RWXNfQgwhVRwwkBYSn
+Date: Sat, 24 May 2025 19:27:40 GMT
+Request-Id: req_011CPSuXBim8ntiKJDjvFUWG
Server: cloudflare
+Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Via: 1.1 google
X-Robots-Tag: none
-{"id":"msg_01FGz6DeWeDpspJG8cuxyVE9","type":"message","role":"assistant","model":"claude-3-7-sonnet-20250219","content":[{"type":"text","text":"Your name is Cornelius, as you mentioned in your introduction."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":54,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":17}}
\ No newline at end of file
+{"id":"msg_01TiEuRrzLgJEfBUNhZ9Am3B","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"Your name is Cornelius, as you introduced yourself in your first message."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":53,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":19,"service_tier":"standard"}}
\ No newline at end of file