library(elmer)
chat <- chat_ollama(model = "llama3.2", echo = TRUE)
chat$chat("hello")
The answer is (mostly) streamed out but then this error:
Error: <elmer::Turn> object properties are invalid:
- @tokens must be <integer> or <double>, not <NULL>
Error during wrapup: cannot get a slot ("slots") from an object of type "NULL"
Error: no more error handlers available (recursive errors?); invoking 'abort' restart
The answer is (mostly) streamed out but then this error: