[PR #1522] [MERGED] Add HuggingFace chat model integration examples #1613

Closed
opened 2026-02-17 17:22:32 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1522
Author: @akhilreddy097
Created: 11/19/2025
Status: Merged
Merged: 11/21/2025
Merged by: @lnhsingh

Base: mainHead: akhilreddy097-patch-1


📝 Commits (2)

  • acfabe4 Add HuggingFace chat model integration examples
  • 202a2ee Merge branch 'main' into akhilreddy097-patch-1

📊 Changes

1 file changed (+38 additions, -0 deletions)

View changed files

📝 src/snippets/chat-model-tabs.mdx (+38 -0)

📄 Description

Type: Update existing documentation

Related issues/PRs

Related to langchain-ai/langchain#28226

Description

Adds HuggingFace chat model integration examples to the chat-model-tabs.mdx snippet file.

Includes:

  • Installation instructions for langchain[huggingface]
  • init_chat_model example with HuggingFace provider
  • Direct model class usage with HuggingFaceEndpoint and ChatHuggingFace
  • Uses microsoft/Phi-3-mini-4k-instruct as the example model

This provides users with a clear example of how to use init_chat_model with HuggingFace models, addressing the documentation gap mentioned in issue #28226.


🔄 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/1522 **Author:** [@akhilreddy097](https://github.com/akhilreddy097) **Created:** 11/19/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `akhilreddy097-patch-1` --- ### 📝 Commits (2) - [`acfabe4`](https://github.com/langchain-ai/docs/commit/acfabe4da92cbc3eb75417736239d3d0a48269ae) Add HuggingFace chat model integration examples - [`202a2ee`](https://github.com/langchain-ai/docs/commit/202a2eef407cd7e58764dc5d781209bbb12b559f) Merge branch 'main' into akhilreddy097-patch-1 ### 📊 Changes **1 file changed** (+38 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/snippets/chat-model-tabs.mdx` (+38 -0) </details> ### 📄 Description **Type:** Update existing documentation ## Related issues/PRs Related to langchain-ai/langchain#28226 ## Description Adds HuggingFace chat model integration examples to the chat-model-tabs.mdx snippet file. **Includes:** - Installation instructions for langchain[huggingface] - init_chat_model example with HuggingFace provider - Direct model class usage with HuggingFaceEndpoint and ChatHuggingFace - Uses microsoft/Phi-3-mini-4k-instruct as the example model This provides users with a clear example of how to use init_chat_model with HuggingFace models, addressing the documentation gap mentioned in issue #28226. --- <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:22:32 -05:00
yindo closed this issue 2026-02-17 17:22:32 -05:00
yindo changed title from [PR #1522] Add HuggingFace chat model integration examples to [PR #1522] [MERGED] Add HuggingFace chat model integration examples 2026-06-05 18:13:55 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#1613