Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Anthropic + OpenAI versions #3308

Merged
merged 4 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,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 @@ -1372,7 +1372,7 @@
"langchainhub": "~0.0.6",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on the PR! This comment is just to flag the change in the "openai" dependency version from "^4.17.0" to "^4.19.0" for the maintainers to review, as it affects the hard dependency of the project.

"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 @@ -22182,7 +22183,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 @@ -22304,7 +22305,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 @@ -24941,9 +24942,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 @@ -24956,7 +24957,7 @@ __metadata:
web-streams-polyfill: ^3.2.1
bin:
openai: bin/cli
checksum: 22b0a7704ba2dd4f139c1085e02aa45ca57c0df53b6f8d097a897da9cb17b9e1083e4dd65ec7ad2ca9a6c4110811bcb080e7fa01f61316b4e3a949c072d53666
checksum: 906c79b73a236504d2ca30a104c988d30833c37ccdffe68755665b285116d56baf03a00027587e9390e6e87894c2a6783f105826a2f66a67fb948300efac14f1
languageName: node
linkType: hard

Expand Down