Generative AI makes things up so I'm surprised that you seem surprised. For some situations checking the documentation is still the best option.
At some point it would be nice if someone could come up with a way of grounding/adding package docs and/or version as part of the context automatically