mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-16 07:14:29 -04:00
fix: Add user agent for AzureCosmosDBMongoDBVectorStore (#1729)
Co-authored-by: yangqiao <yangqiao@microsoft.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user