feat: harden cache reuse semantics and expand protocol regressions
Stabilize cross-protocol ask-mode/streaming behavior and reduce session-reuse branch collisions, then add focused docs/tests for multimodal normalization and pool/stats/config paths. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -17,11 +17,12 @@ class SchemaNormalizationTests(unittest.TestCase):
|
||||
[
|
||||
{"type": "text", "text": "hello"},
|
||||
{"type": "image_url", "image_url": {"url": "x"}},
|
||||
{"type": "input_image", "image_url": {"url": "y"}},
|
||||
{"type": "input_audio", "input_audio": {"data": "x"}},
|
||||
{"type": "text", "text": "world"},
|
||||
]
|
||||
)
|
||||
self.assertEqual(out, "hello\n[image]\n[audio]\nworld")
|
||||
self.assertEqual(out, "hello\n[image]\n[image]\n[audio]\nworld")
|
||||
|
||||
def test_anthropic_flatten_content_with_tool_blocks(self) -> None:
|
||||
out = flatten_anthropic_content(
|
||||
|
||||
Reference in New Issue
Block a user