Skip to content

Commit 57f1250

Browse files
authored
fix: missing init while retrieving context (langchain-ai#8965)
1 parent d60f40f commit 57f1250

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/curly-spoons-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export class AzureCosmsosDBNoSQLChatMessageHistory extends BaseListChatMessageHi
231231
}
232232

233233
async getContext(): Promise<Record<string, unknown>> {
234+
await this.initializeContainer();
234235
const document = await this.container
235236
.item(this.sessionId, this.userId)
236237
.read();

0 commit comments

Comments
 (0)