You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# Changelog
2
2
3
+
## 0.52.0 (2025-05-22)
4
+
5
+
Full Changelog: [sdk-v0.51.0...sdk-v0.52.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.51.0...sdk-v0.52.0)
6
+
7
+
### Features
8
+
9
+
***api:** add claude 4 models, files API, code execution tool, MCP connector and more ([769f9da](https://github.com/anthropics/anthropic-sdk-typescript/commit/769f9da91cf4480d1e4aa4bb488d6d9cc2471985))
10
+
11
+
12
+
### Chores
13
+
14
+
***internal:** codegen related update ([2ed236d](https://github.com/anthropics/anthropic-sdk-typescript/commit/2ed236ddb9977a91289c4799692a583f460ce8b6))
15
+
***internal:** version bump ([8ebaf61](https://github.com/anthropics/anthropic-sdk-typescript/commit/8ebaf616d2e5c6aebc153f19a403dde41ab5a9f1))
16
+
3
17
## 0.51.0 (2025-05-15)
4
18
5
19
Full Changelog: [sdk-v0.50.4...sdk-v0.51.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.50.4...sdk-v0.51.0)
Copy file name to clipboardExpand all lines: README.md
+48-2Lines changed: 48 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -184,6 +184,51 @@ This SDK provides support for tool use, aka function calling. More details can b
184
184
185
185
We provide support for the [Anthropic Bedrock API](https://aws.amazon.com/bedrock/claude/) through a [separate package](https://github.com/anthropics/anthropic-sdk-typescript/tree/main/packages/bedrock-sdk).
186
186
187
+
## File uploads
188
+
189
+
Request parameters that correspond to file uploads can be passed in many different forms:
190
+
191
+
-`File` (or an object with the same structure)
192
+
- a `fetch``Response` (or an object with the same structure)
193
+
- an `fs.ReadStream`
194
+
- the return value of our `toFile` helper
195
+
196
+
Note that we recommend you set the content-type explicitly as the files API will not infer it for you:
@@ -309,8 +354,9 @@ Passing `stream: true` or [overriding](#timeouts) the `timeout` option at the cl
309
354
An expected request latency longer than the [timeout](#timeouts) for a non-streaming request
310
355
will result in the client terminating the connection and retrying without receiving a response.
311
356
312
-
When supported by the `fetch` implementation, we set a [TCP socket keep-alive](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html)
313
-
option in order to reduce the impact of idle connection timeouts on some networks.
357
+
When supported by the `fetch` implementation, we set a [TCP socket keep-alive](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) option in order
358
+
to reduce the impact of idle connection timeouts on some networks.
359
+
This can be [overriden](#configuring-an-https-agent-eg-for-proxies) by configuring a custom proxy.
Copy file name to clipboardExpand all lines: packages/bedrock-sdk/CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# Changelog
2
2
3
+
## 0.22.1 (2025-05-22)
4
+
5
+
Full Changelog: [bedrock-sdk-v0.22.0...bedrock-sdk-v0.22.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/bedrock-sdk-v0.22.0...bedrock-sdk-v0.22.1)
6
+
7
+
### Chores
8
+
9
+
***internal:** version bump ([8ebaf61](https://github.com/anthropics/anthropic-sdk-typescript/commit/8ebaf616d2e5c6aebc153f19a403dde41ab5a9f1))
10
+
3
11
## 0.22.0 (2025-05-15)
4
12
5
13
Full Changelog: [bedrock-sdk-v0.21.2...bedrock-sdk-v0.22.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/bedrock-sdk-v0.21.2...bedrock-sdk-v0.22.0)
0 commit comments