[PR #304] [MERGED] fix(oss): update JS examples in messages #615

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/304
Author: @christian-bromann
Created: 9/1/2025
Status: Merged
Merged: 9/1/2025
Merged by: @christian-bromann

Base: harrison/v1-weekendHead: cb/messages-update


📝 Commits (1)

  • 81fc174 fix(oss): update JS examples in messages

📊 Changes

1 file changed (+28 additions, -26 deletions)

View changed files

📝 src/oss/langchain-messages.mdx (+28 -26)

📄 Description

Some updates to the JS examples in messages:

  • let's import message primitives from langchain directly, same for initChatModel
  • technically there is no difference between importing from fs vs node:fs, I think using latter gives a more clear picture that the example uses a Node.js primitive

🔄 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/304 **Author:** [@christian-bromann](https://github.com/christian-bromann) **Created:** 9/1/2025 **Status:** ✅ Merged **Merged:** 9/1/2025 **Merged by:** [@christian-bromann](https://github.com/christian-bromann) **Base:** `harrison/v1-weekend` ← **Head:** `cb/messages-update` --- ### 📝 Commits (1) - [`81fc174`](https://github.com/langchain-ai/docs/commit/81fc174e31d995f5906f39cefd916ae434869d8a) fix(oss): update JS examples in messages ### 📊 Changes **1 file changed** (+28 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain-messages.mdx` (+28 -26) </details> ### 📄 Description Some updates to the JS examples in messages: - let's import message primitives from `langchain` directly, same for `initChatModel` - technically there is no difference between importing from `fs` vs `node:fs`, I think using latter gives a more clear picture that the example uses a Node.js primitive --- <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:46 -05:00
yindo closed this issue 2026-02-17 17:20:46 -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#615