Skip to content

Commit 952ce38

Browse files
authored
Merge pull request #2504 from aws-samples/dependabot/npm_and_yarn/appsync-bedrock-subscriptions-cdk/npm_and_yarn-f0f0139a0e
Bump langchain from 0.0.169 to 0.3.5 in /appsync-bedrock-subscriptions-cdk in the npm_and_yarn group across 1 directory
2 parents 151ee9e + 1278b45 commit 952ce38

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

appsync-bedrock-subscriptions-cdk/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@aws-sdk/protocol-http": "^3.374.0",
1818
"@aws-sdk/signature-v4": "^3.374.0",
1919
"@types/aws-lambda": "^8.10.125",
20+
"@types/jest": "^29.5.14",
2021
"@types/node": "18.14.6",
2122
"aws-cdk": "2.70.0",
2223
"jest": "^29.5.0",
@@ -25,13 +26,14 @@
2526
},
2627
"dependencies": {
2728
"@aws-sdk/client-bedrock-runtime": "^3.431.0",
29+
"@langchain/community": "^0.3.11",
2830
"@smithy/eventstream-codec": "^2.0.12",
2931
"@smithy/protocol-http": "^3.0.8",
3032
"@smithy/signature-v4": "^2.0.12",
3133
"@smithy/util-utf8": "^2.0.0",
3234
"aws-cdk-lib": "2.80.0",
3335
"babel-jest": "^29.7.0",
3436
"constructs": "^10.0.0",
35-
"langchain": "^0.0.169"
37+
"langchain": "^0.3.5"
3638
}
37-
}
39+
}

appsync-bedrock-subscriptions-cdk/src/ask.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { AppSyncResolverEvent } from 'aws-lambda'
2-
import { ChatBedrock } from 'langchain/chat_models/bedrock'
3-
import { AppSyncRequestIAM } from "./appsyncRequest"
4-
import { StringOutputParser } from "langchain/schema/output_parser";
1+
import { AppSyncResolverEvent } from "aws-lambda";
2+
import { ChatBedrock } from "@langchain/community/chat_models/bedrock";
3+
import { AppSyncRequestIAM } from "./appsyncRequest";
4+
import { StringOutputParser } from "@langchain/core/output_parsers";
55
const GRAPHQL_URL = process.env.GRAPHQL_URL || "";
66
const REGION = process.env.REGION || 'us-east-1';
77

@@ -39,4 +39,4 @@ exports.handler = async (event: AppSyncResolverEvent<{ chatId: string, prompt: s
3939
}
4040
})
4141
}
42-
}
42+
}

0 commit comments

Comments
 (0)