Skip to content

Commit

Permalink
Bump Anthropic + OpenAI versions (langchain-ai#3308)
Browse files Browse the repository at this point in the history
* Bump OpenAI version

* Bump Anthropic SDK

* Update test

* Whoops
  • Loading branch information
jacoblee93 authored Nov 16, 2023
1 parent 7538d6f commit bb9fb67
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@
}
},
"dependencies": {
"@anthropic-ai/sdk": "^0.6.2",
"@anthropic-ai/sdk": "^0.9.1",
"ansi-styles": "^5.0.0",
"binary-extensions": "^2.2.0",
"camelcase": "6",
Expand All @@ -1370,7 +1370,7 @@
"langchainhub": "~0.0.6",
"langsmith": "~0.0.48",
"ml-distance": "^4.0.0",
"openai": "^4.17.0",
"openai": "^4.19.0",
"openapi-types": "^12.1.3",
"p-queue": "^6.6.2",
"p-retry": "4",
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/chat_models/tests/chatanthropic.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ test("Test ChatAnthropic stream method", async () => {
test("Test ChatAnthropic stream method with abort", async () => {
await expect(async () => {
const model = new ChatAnthropic({
maxTokensToSample: 50,
maxTokensToSample: 500,
modelName: "claude-instant-v1",
});
const stream = await model.stream(
Expand Down
21 changes: 11 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ __metadata:
languageName: node
linkType: hard

"@anthropic-ai/sdk@npm:^0.6.2":
version: 0.6.2
resolution: "@anthropic-ai/sdk@npm:0.6.2"
"@anthropic-ai/sdk@npm:^0.9.1":
version: 0.9.1
resolution: "@anthropic-ai/sdk@npm:0.9.1"
dependencies:
"@types/node": ^18.11.18
"@types/node-fetch": ^2.6.4
Expand All @@ -223,7 +223,8 @@ __metadata:
form-data-encoder: 1.7.2
formdata-node: ^4.3.2
node-fetch: ^2.6.7
checksum: a07dd0d42fe83b79bec506399755161cb12d26df756093df7f6189d062d01bd944a4d909d9d13b178567e7778b8966fe6f4b7051b9397cbd035c3fc184289c36
web-streams-polyfill: ^3.2.1
checksum: 0ec50abc0ffc694d903d516f4ac110aafa3a588438791851dd2c3d220da49ceaf2723e218b7f1bc13e737fee1561b18ad8c3b4cc4347e8212131f69637216413
languageName: node
linkType: hard

Expand Down Expand Up @@ -22195,7 +22196,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "langchain@workspace:langchain"
dependencies:
"@anthropic-ai/sdk": ^0.6.2
"@anthropic-ai/sdk": ^0.9.1
"@aws-crypto/sha256-js": ^5.0.0
"@aws-sdk/client-bedrock-runtime": ^3.422.0
"@aws-sdk/client-dynamodb": ^3.310.0
Expand Down Expand Up @@ -22317,7 +22318,7 @@ __metadata:
neo4j-driver: ^5.12.0
node-llama-cpp: 2.7.3
notion-to-md: ^3.1.0
openai: ^4.17.0
openai: ^4.19.0
openapi-types: ^12.1.3
p-queue: ^6.6.2
p-retry: 4
Expand Down Expand Up @@ -24953,9 +24954,9 @@ __metadata:
languageName: node
linkType: hard

"openai@npm:^4.17.0":
version: 4.17.0
resolution: "openai@npm:4.17.0"
"openai@npm:^4.19.0":
version: 4.19.0
resolution: "openai@npm:4.19.0"
dependencies:
"@types/node": ^18.11.18
"@types/node-fetch": ^2.6.4
Expand All @@ -24968,7 +24969,7 @@ __metadata:
web-streams-polyfill: ^3.2.1
bin:
openai: bin/cli
checksum: 22b0a7704ba2dd4f139c1085e02aa45ca57c0df53b6f8d097a897da9cb17b9e1083e4dd65ec7ad2ca9a6c4110811bcb080e7fa01f61316b4e3a949c072d53666
checksum: 906c79b73a236504d2ca30a104c988d30833c37ccdffe68755665b285116d56baf03a00027587e9390e6e87894c2a6783f105826a2f66a67fb948300efac14f1
languageName: node
linkType: hard

Expand Down

0 comments on commit bb9fb67

Please sign in to comment.