anthropic[patch]: pass back in citations in multi-turn conversations (#31882)

Also adds VCR cassettes for some heavy tests.
This commit is contained in:
ccurme
2025-07-05 17:33:22 -04:00
committed by GitHub
parent 46fe09f013
commit 3f4b355eef
7 changed files with 39 additions and 14 deletions

View File

@@ -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":