For an app that I'm working on[1], I was using LangChain's Ollama integration and it was a headache. Things wouldn't work as documented as they were either wrong or outdated. Then when I had enough, I replaced it with the official Ollama JS library and so far it has been a great experience. It just works without any ceremony.
[1]: https://msty.app