Open zjffdu opened 6 months ago
I'm getting the same issue.
Here's a workaround I came up with:
It requires LangChain though.
from langchain.llms import Ollama
from llama_index.llms import LangChainLLM
llm = LangChainLLM(llm=Ollama(model="llama2"))
response = llm.complete("What is the history of LEGO?")
print(response)
Here's the error I get, what might be wrong?