mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
anthropic[patch]: pass back in citations in multi-turn conversations (#31882)
Also adds VCR cassettes for some heavy tests.
This commit is contained in:
@@ -396,7 +396,8 @@ def _format_messages(
|
||||
{
|
||||
k: v
|
||||
for k, v in block.items()
|
||||
if k in ("type", "text", "cache_control")
|
||||
if k
|
||||
in ("type", "text", "cache_control", "citations")
|
||||
}
|
||||
)
|
||||
elif block["type"] == "thinking":
|
||||
|
||||
Reference in New Issue
Block a user