Investigation of the Jaynes-Cummings and Keldysh Diagrammatic models for the dispersive shift of the transmon qubit