fix: Add user agent for AzureCosmosDBMongoDBVectorStore (#1729)

Co-authored-by: yangqiao <yangqiao@microsoft.com>
This commit is contained in:
yangqiao
2025-03-10 19:08:28 +08:00
committed by GitHub
parent 33f98565ab
commit c14a21bc0b
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@llamaindex/azure": patch
---
Add UA for convenient statistics of usage
@@ -106,7 +106,9 @@ export class AzureCosmosDBMongoDBVectorStore extends BaseVectorStore {
"AzureCosmosDBMongoDBVectorStore client or connection string must be set.",
);
}
this.mongodbClient = new MongoClient(mongoUri);
this.mongodbClient = new MongoClient(mongoUri, {
appName: "LLAMAINDEX_JS",
});
}
this.dbName = init.dbName ?? "documentsDB";