This is due to the revamp of the Inference API, so it is not an error. You need to change how you use it.