Human-AI ecosystem with abrupt changes as a function of the composition