Skip to content

Error when streaming from Ollama #117

@jcheng5

Description

@jcheng5
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions