langchain/libs
Piyush Jain 2b234a4d96
Support for claude v3 models. (#18630)
Fixes #18513.

## Description
This PR attempts to fix the support for Anthropic Claude v3 models in
BedrockChat LLM. The changes here has updated the payload to use the
`messages` format instead of the formatted text prompt for all models;
`messages` API is backwards compatible with all models in Anthropic, so
this should not break the experience for any models.


## Notes
The PR in the current form does not support the v3 models for the
non-chat Bedrock LLM. This means, that with these changes, users won't
be able to able to use the v3 models with the Bedrock LLM. I can open a
separate PR to tackle this use-case, the intent here was to get this out
quickly, so users can start using and test the chat LLM. The Bedrock LLM
classes have also grown complex with a lot of conditions to support
various providers and models, and is ripe for a refactor to make future
changes more palatable. This refactor is likely to take longer, and
requires more thorough testing from the community. Credit to PRs
[18579](https://github.com/langchain-ai/langchain/pull/18579) and
[18548](https://github.com/langchain-ai/langchain/pull/18548) for some
of the code here.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-03-06 15:46:18 -08:00
..
cli infra: make .gitignore consistent with standard python gitignore (#16828) 2024-02-12 19:43:41 -08:00
community Support for claude v3 models. (#18630) 2024-03-06 15:46:18 -08:00
core core: Move document loader interfaces to core (#17723) 2024-03-06 13:59:00 -05:00
experimental anthropic[minor]: add tool calling (#18554) 2024-03-05 08:30:16 -08:00
langchain community[minor]: add Yuque document loader (#17924) 2024-03-05 15:54:07 -08:00
partners openai[patch]: unit test azure init (#18703) 2024-03-06 14:17:09 -08:00
text-splitters docs: text splitters readme (#18359) 2024-03-01 03:00:42 +00:00