From cdf218c8a416e34c12093e09f77686c929707592 Mon Sep 17 00:00:00 2001 From: Moe Khalil Date: Tue, 27 Oct 2026 19:12:44 +0000 Subject: [PATCH] test(openai): expect assistant text before its tool call in Responses input Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../openai/responses/test_openai_count_tokens_transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/llms/openai/responses/test_openai_count_tokens_transformation.py b/tests/unit/llms/openai/responses/test_openai_count_tokens_transformation.py index d5e7bb4f93b..e494540df9f 100644 --- a/tests/unit/llms/openai/responses/test_openai_count_tokens_transformation.py +++ b/tests/unit/llms/openai/responses/test_openai_count_tokens_transformation.py @@ -591,12 +591,12 @@ def test_anthropic_messages_keep_every_block_the_chat_converter_drops() -> None: {"type": "input_image", "image_url": f"data:image/png;base64,{PNG_BASE64}", "detail": "auto"}, ], }, - {"type": "function_call", "call_id": "toolu_01", "name": "lookup_clause", "arguments": '{"id": "14"}'}, { "type": "message", "role": "assistant", "content": [{"type": "output_text", "text": "Let me pull clause 14."}], }, + {"type": "function_call", "call_id": "toolu_01", "name": "lookup_clause", "arguments": '{"id": "14"}'}, {"type": "function_call_output", "call_id": "toolu_01", "output": "14. Indemnification."}, )