diff --git a/libs/langchain-anthropic/src/tests/chat_models.int.test.ts b/libs/langchain-anthropic/src/tests/chat_models.int.test.ts index fa2b6a59fda4..9b49f4ddfdab 100644 --- a/libs/langchain-anthropic/src/tests/chat_models.int.test.ts +++ b/libs/langchain-anthropic/src/tests/chat_models.int.test.ts @@ -722,7 +722,7 @@ test("system prompt caching", async () => { 0 ); const stream = await model.stream(messages); - let agg = undefined; + let agg; for await (const chunk of stream) { agg = agg === undefined ? chunk : concat(agg, chunk); }