[PR #408] [MERGED] docs(oss): await stream in messages doc example #716

Closed
opened 2026-02-17 17:20:59 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/408
Author: @markgoho
Created: 9/8/2025
Status: Merged
Merged: 9/9/2025
Merged by: @lnhsingh

Base: mainHead: mgoho/fix/await-stream


📝 Commits (2)

  • df09ded await stream
  • f023aeb Merge branch 'main' into mgoho/fix/await-stream

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 src/oss/langchain/messages.mdx (+2 -1)

📄 Description

model.stream() is a promise that needs to be awaited

for clarity, I separated the stream from where it's iterated over just to avoid two awaits on the same line


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/408 **Author:** [@markgoho](https://github.com/markgoho) **Created:** 9/8/2025 **Status:** ✅ Merged **Merged:** 9/9/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `mgoho/fix/await-stream` --- ### 📝 Commits (2) - [`df09ded`](https://github.com/langchain-ai/docs/commit/df09dedbe7ec8eec06d22d8c8d8dc1aeaec0b60c) await stream - [`f023aeb`](https://github.com/langchain-ai/docs/commit/f023aebff72b915a14ebb9367c964857aa0957b0) Merge branch 'main' into mgoho/fix/await-stream ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/messages.mdx` (+2 -1) </details> ### 📄 Description `model.stream()` is a promise that needs to be awaited for clarity, I separated the stream from where it's iterated over just to avoid two `await`s on the same line --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:20:59 -05:00
yindo closed this issue 2026-02-17 17:20:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#716