mirror of https://github.com/hwchase17/langchain
Anthropic system message fix (#11301)
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 suboptimalpull/11381/head
parent
34a64101cc
commit
b499de2926
Loading…
Reference in New Issue