From 6d3162da1ddb964b75e575376f278468ba1ed9f5 Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Fri, 17 Jan 2025 17:20:33 +0800 Subject: [PATCH] docs(readme): fix Request IDs example (#659) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fe3f223..fac24b92 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,7 @@ All object responses in the SDK provide a `_request_id` property which is added ```ts const message = await client.messages.create({ max_tokens: 1024, messages: [{ role: 'user', content: 'Hello, Claude' }], model: 'claude-3-5-sonnet-latest' }); -console.log(completion._request_id) // req_018EeWyXxfu5pfWkrYcMdjWG +console.log(message._request_id) // req_018EeWyXxfu5pfWkrYcMdjWG ```