Xpeng has created an AI unit under its smart driving department to focus specifically on areas including end-to-end technology, according to local media.