Skip to content

Commit

Permalink
docs(readme): fix Request IDs example (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandv authored Jan 17, 2025
1 parent 4e6d031 commit 6d3162d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand Down

0 comments on commit 6d3162d

Please sign in to comment.