mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
b499de2926
Removes human prompt prefix before system message for anthropic models Bedrock anthropic api enforces that Human and Assistant messages must be interleaved (cannot have same type twice in a row). We currently treat System Messages as human messages when converting messages -> string prompt. Our validation when using Bedrock/BedrockChat raises an error when this happens. For ChatAnthropic we don't validate this so no error is raised, but perhaps the behavior is still suboptimal |
||
---|---|---|
.. | ||
experimental | ||
langchain |