Llm.complete getting failed with value error: chat response object has no field usage while using ollama #17035
Llm.complete getting failed with value error: chat response object has no field usage while using ollama #17035
At a glance
A community member reported a bug where llm.complete was failing with a ValueError: Chat response object has no field usage when using ollama. Other community members tried to reproduce the issue, and one suggested that the problem might be related to the ollama 4.0 update. The community members discussed potential solutions, such as setting up a virtual environment with minimal packages, downgrading ollama to a previous version, and updating the ollama package to work with the latest version. The issue remains open, and a community member has created a pull request to address the problem.