We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60f40f commit 57f1250Copy full SHA for 57f1250
.changeset/curly-spoons-build.md
@@ -0,0 +1,5 @@
1
+---
2
+"@langchain/azure-cosmosdb": patch
3
4
+
5
+Fix missing init while retrieving context in AzureCosmsosDBNoSQLChatMessageHistory
libs/langchain-azure-cosmosdb/src/chat_histories/nosql.ts
@@ -231,6 +231,7 @@ export class AzureCosmsosDBNoSQLChatMessageHistory extends BaseListChatMessageHi
231
}
232
233
async getContext(): Promise<Record<string, unknown>> {
234
+ await this.initializeContainer();
235
const document = await this.container
236
.item(this.sessionId, this.userId)
237
.read();
0 commit comments