diff --git a/libs/genai/tests/integration_tests/test_chat_models.py b/libs/genai/tests/integration_tests/test_chat_models.py index 0a8d46dc..47685dd1 100644 --- a/libs/genai/tests/integration_tests/test_chat_models.py +++ b/libs/genai/tests/integration_tests/test_chat_models.py @@ -535,7 +535,8 @@ class MyModel(typing_extensions.TypedDict): ] response = llm.invoke(messages) - assert isinstance(response.content, list) + response_data = json.loads(response.content) + assert isinstance(response_data, list) assert len(response.content) > 1 assert isinstance(response.content[0], MyModel) for item in response.content: