mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-15 14:36:54 +00:00
docs[patch]: add deprecated note for ErnieChatBot (#14061)
- **Description:** just a little change of ErnieChatBot class description, sugguesting user to use more suitable class - **Issue:** none, - **Dependencies:** none, - **Tag maintainer:** @baskaryan , - **Twitter handle:** none
This commit is contained in:
@@ -54,6 +54,20 @@ class ErnieBotChat(BaseChatModel):
|
||||
from langchain.chat_models import ErnieBotChat
|
||||
chat = ErnieBotChat(model_name='ERNIE-Bot')
|
||||
|
||||
|
||||
Deprecated Note:
|
||||
Please use `QianfanChatEndpoint` instead of this class.
|
||||
`QianfanChatEndpoint` is a more suitable choice for production.
|
||||
|
||||
Always test your code after changing to `QianfanChatEndpoint`.
|
||||
|
||||
Example of `QianfanChatEndpoint`:
|
||||
.. code-block:: python
|
||||
|
||||
from langchain.chat_models import QianfanChatEndpoint
|
||||
qianfan_chat = QianfanChatEndpoint(model="ERNIE-Bot",
|
||||
endpoint="your_endpoint", qianfan_ak="your_ak", qianfan_sk="your_sk")
|
||||
|
||||
"""
|
||||
|
||||
ernie_api_base: Optional[str] = None
|
||||
|
Reference in New Issue
Block a user