From 365e2f40e73c1aa6aecc30d18cc7298700a8b4a5 Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Fri, 17 Jan 2025 08:24:57 +0200 Subject: [PATCH] docs(readme): fix Request IDs example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6680a4c7..38a898fc 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 ```