langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
89.75k stars 14.19k forks source link

DOC: Sample Chatbots Quick Start Needs to updated to new API'DOC: ' prefix> #16755

Closed rdhillbb closed 2 months ago

rdhillbb commented 5 months ago

Issue with current documentation:

Page URL: https://python.langchain.com/docs/use_cases/chatbots Sample Code: chat( [ HumanMessage( content="Translate this sentence from English to French: I love programming." ) ] ) Warning: Users/randolphhill/govbotics/deepinfra/.venv/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:117: LangChainDeprecationWarning: The function __call__ was deprecated in LangChain 0.1.7 and will be removed in 0.2.0. Use invoke instead. warn_deprecated(

Revised Code: rsp = chat.invoke( [ HumanMessage( content="Translate this sentence from English to Bahasa Indoensia: Good Morning, How are you?. " ) ] )

Idea or request for content:

No response

dosubot[bot] commented 5 months ago

🤖

It's great to see your interest in improving the documentation! Your proposed update looks good and will definitely help users who are working with the new API. We encourage you to go ahead and create a pull request with your changes. Your contribution will be valuable to the community. Thank you for your willingness to improve the documentation!


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.