Skip to content

Commit b8211a5

Browse files
committed
chore: remove unused azure-openai dependency
1 parent 1a7a9b3 commit b8211a5

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

libs/langchain-mongodb/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
},
4040
"devDependencies": {
4141
"@jest/globals": "^29.5.0",
42-
"@langchain/azure-openai": "workspace:*",
4342
"@langchain/core": "workspace:*",
4443
"@langchain/openai": "workspace:*",
4544
"@langchain/scripts": ">=0.1.0 <0.2.0",

libs/langchain-mongodb/src/tests/vectorstores.int.test.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class PatchedVectorStore extends MongoDBAtlasVectorSearch {
106106
function getEmbeddings() {
107107
if (process.env.AZURE_OPENAI_API_KEY) {
108108
return new AzureOpenAIEmbeddings({
109-
model: 'text-embedding-3-small',
110-
azureOpenAIApiDeploymentName: 'openai/deployments/text-embedding-3-small'
109+
model: "text-embedding-3-small",
110+
azureOpenAIApiDeploymentName: "openai/deployments/text-embedding-3-small",
111111
});
112112
}
113113
return new OpenAIEmbeddings();
@@ -861,11 +861,9 @@ describe("Static Methods", () => {
861861
new Document({ pageContent: "doc2", metadata: { source: "source2" } }),
862862
];
863863

864-
await MongoDBAtlasVectorSearch.fromDocuments(
865-
documents,
866-
getEmbeddings(),
867-
{ collection }
868-
);
864+
await MongoDBAtlasVectorSearch.fromDocuments(documents, getEmbeddings(), {
865+
collection,
866+
});
869867

870868
const results = await collection
871869
.find({}, { projection: { _id: 0, text: 1, embedding: 1 } })
@@ -884,11 +882,10 @@ describe("Static Methods", () => {
884882
new Document({ pageContent: "doc2", metadata: { source: "source2" } }),
885883
];
886884

887-
await MongoDBAtlasVectorSearch.fromDocuments(
888-
documents,
889-
getEmbeddings(),
890-
{ collection, ids: ["custom1", "custom2"] }
891-
);
885+
await MongoDBAtlasVectorSearch.fromDocuments(documents, getEmbeddings(), {
886+
collection,
887+
ids: ["custom1", "custom2"],
888+
});
892889

893890
const results = await collection
894891
.find({}, { projection: { _id: 1, text: 1 } })

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9374,7 +9374,6 @@ __metadata:
93749374
resolution: "@langchain/mongodb@workspace:libs/langchain-mongodb"
93759375
dependencies:
93769376
"@jest/globals": ^29.5.0
9377-
"@langchain/azure-openai": "workspace:*"
93789377
"@langchain/core": "workspace:*"
93799378
"@langchain/openai": "workspace:*"
93809379
"@langchain/scripts": ">=0.1.0 <0.2.0"

0 commit comments

Comments
 (0)