langchain
783397ea - community: avoid double templating in `langchain_prompty` (#25777)

Commit
1 year ago
community: avoid double templating in `langchain_prompty` (#25777) ## Description In `langchain_prompty`, messages are templated by Prompty. However, a call to `ChatPromptTemplate` was initiating a second templating. We now convert parsed messages to `Message` objects before calling `ChatPromptTemplate`, signifying clearly that they are already templated. We also revert #25739 , which applied to this second templating, which we now avoid, and did not fix the original issue. ## Issue Closes #25703
Author
Parents
Loading