Skip to content

Commit 1bb4c43

Browse files
rootCirclejacoblee93
andauthoredSep 17, 2024··
deps: update @anthropic-ai/sdk to 0.27.3 from 0.25.2 (#6796)
Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
1 parent e440c41 commit 1bb4c43

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed
 

‎libs/langchain-anthropic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"author": "LangChain",
3636
"license": "MIT",
3737
"dependencies": {
38-
"@anthropic-ai/sdk": "^0.25.2",
38+
"@anthropic-ai/sdk": "^0.27.3",
3939
"fast-xml-parser": "^4.4.1",
4040
"zod": "^3.22.4",
4141
"zod-to-json-schema": "^3.22.4"

‎libs/langchain-anthropic/src/chat_models.ts

+2
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ export class ChatAnthropicMessages<
923923
if (!this.streamingClient) {
924924
const options_ = this.apiUrl ? { baseURL: this.apiUrl } : undefined;
925925
this.streamingClient = this.createClient({
926+
dangerouslyAllowBrowser: true,
926927
...this.clientOptions,
927928
...options_,
928929
apiKey: this.apiKey,
@@ -950,6 +951,7 @@ export class ChatAnthropicMessages<
950951
if (!this.batchClient) {
951952
const options = this.apiUrl ? { baseURL: this.apiUrl } : undefined;
952953
this.batchClient = this.createClient({
954+
dangerouslyAllowBrowser: true,
953955
...this.clientOptions,
954956
...options,
955957
apiKey: this.apiKey,

‎yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ __metadata:
226226
languageName: node
227227
linkType: hard
228228

229-
"@anthropic-ai/sdk@npm:^0.25.2":
230-
version: 0.25.2
231-
resolution: "@anthropic-ai/sdk@npm:0.25.2"
229+
"@anthropic-ai/sdk@npm:^0.27.3":
230+
version: 0.27.3
231+
resolution: "@anthropic-ai/sdk@npm:0.27.3"
232232
dependencies:
233233
"@types/node": ^18.11.18
234234
"@types/node-fetch": ^2.6.4
@@ -237,7 +237,7 @@ __metadata:
237237
form-data-encoder: 1.7.2
238238
formdata-node: ^4.3.2
239239
node-fetch: ^2.6.7
240-
checksum: b38f6a43f6f678e49f1b53226cc55654c23cf0fd1902cf3fcf98c0ae78f4c229518964f4cb31bc39da41925c806e7f4cc7ec14c511d387f07db3136b111bc744
240+
checksum: 8000fc5a4e545057d8711f978a0de59c9a174398a81f700c9d279213790aaa4b2c100f96f2ef79447b8f1f3a04b8f094d60db66a06df8df96b31a3240d69cb5a
241241
languageName: node
242242
linkType: hard
243243

@@ -11116,7 +11116,7 @@ __metadata:
1111611116
version: 0.0.0-use.local
1111711117
resolution: "@langchain/anthropic@workspace:libs/langchain-anthropic"
1111811118
dependencies:
11119-
"@anthropic-ai/sdk": ^0.25.2
11119+
"@anthropic-ai/sdk": ^0.27.3
1112011120
"@anthropic-ai/vertex-sdk": ^0.4.1
1112111121
"@jest/globals": ^29.5.0
1112211122
"@langchain/core": "workspace:*"

0 commit comments

Comments
 (0)
Please sign in to comment.