langchain/libs/partners/prompty/langchain_prompty
Matthieu 783397eacb
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
2024-08-28 18:18:18 -04:00
..
__init__.py
core.py
langchain.py community: avoid double templating in langchain_prompty (#25777) 2024-08-28 18:18:18 -04:00
parsers.py community: avoid double templating in langchain_prompty (#25777) 2024-08-28 18:18:18 -04:00
renderers.py
utils.py