langchain/libs/core/tests
Chun Kang Lu 380449a7a9
core: fix Image prompt template hardcoded template format (#27495)
Fixes #27411 

**Description:** Adds `template_format` to the `ImagePromptTemplate`
class and updates passing in the `template_format` parameter from
ChatPromptTemplate instead of the hardcoded "f-string".
Also updated docs and typing related to `template_format` to be more
up-to-date and specific.

**Dependencies:** None

**Add tests and docs**: Added unit tests to validate fix. Needed to
update `test_chat` snapshot due to adding new attribute
`template_format` in `ImagePromptTemplate`.

---------

Co-authored-by: Vadym Barda <vadym@langchain.dev>
2024-10-21 17:31:40 -04:00
..
integration_tests core: Add ruff rules for PIE (#26939) 2024-09-27 12:08:35 -04:00
unit_tests core: fix Image prompt template hardcoded template format (#27495) 2024-10-21 17:31:40 -04:00
__init__.py