[PR #11714] New add Baichuan Model #17486

Closed
opened 2026-02-18 18:33:35 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langchain/pull/11714

State: closed
Merged: Yes


Motivation and Context
At present, the Baichuan Large Language Model is relatively popular and efficient in performance. Due to widespread market recognition, this model has been added to enhance the scalability of Langchain's ability to access the big language model, so as to facilitate application access and usage for interested users.

System Info
langchain: 0.0.295
python:3.8.3
IDE:vs code

Description
Add the following files:

  1. Add baichuan_baichuaninc_endpoint.py in the libs/langchain/langchain/chat_models
  2. Modify the __init__.py file,which is located in the libs/langchain/langchain/chat_models/init__.py:
    a. Add "from langchain.chat_models.baichuan_baichuaninc_endpoint import BaichuanChatEndpoint"
    b. Add "BaichuanChatEndpoint" In the file's __ All
    method

Your contribution
I am willing to help implement this feature and submit a PR, but I would appreciate guidance from the maintainers or community to ensure the changes are made correctly and in line with the project's standards and practices.

**Original Pull Request:** https://github.com/langchain-ai/langchain/pull/11714 **State:** closed **Merged:** Yes --- Motivation and Context At present, the Baichuan Large Language Model is relatively popular and efficient in performance. Due to widespread market recognition, this model has been added to enhance the scalability of Langchain's ability to access the big language model, so as to facilitate application access and usage for interested users. System Info langchain: 0.0.295 python:3.8.3 IDE:vs code Description Add the following files: 1. Add baichuan_baichuaninc_endpoint.py in the libs/langchain/langchain/chat_models 2. Modify the __init__.py file,which is located in the libs/langchain/langchain/chat_models/__init__.py: a. Add "from langchain.chat_models.baichuan_baichuaninc_endpoint import BaichuanChatEndpoint" b. Add "BaichuanChatEndpoint" In the file's __ All__ method Your contribution I am willing to help implement this feature and submit a PR, but I would appreciate guidance from the maintainers or community to ensure the changes are made correctly and in line with the project's standards and practices.
yindo added the pull-request label 2026-02-18 18:33:35 -05:00
yindo closed this issue 2026-02-18 18:33:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langchain#17486