async def test_request_success(self):
        """Ensures that _request returns JSON response on success."""
        payload = {"prompt": "Hello"}
        response_json = {"choices": [{"text": "Hi"}]}
        response_mock = AsyncMock()
        response_mock.status_code = 200
        response_mock.json = AsyncMock(return_value=response_json)
        response_mock.raise_for_status = Mock()
        self.client._client.post.return_value = response_mock
        result = await self.client._request(payload)
        assert await result == response_json
Ensures that _request returns JSON response on success.
llama-index-integrations/embeddings/llama-index-embeddings-oci-data-science/tests/test_oci_data_science_client.py