The documentation mentions that log probabilities are expected and gives a code example.
What is missing and what statement do you think might have been helpful to solve your misunderstanding? The docs are by far perfect, so feedback is always welcome.