I'm receiving this error when I try to call:
OutputFixingParser.from_llm(parser=parser, llm=ChatOpenAI())
Where parser is a class that I have built to extend BaseOutputParser. I don't think that class can be the problem because of the error I am receiving:
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for LLMChain
Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, generate_prompt (type=type_error)
I'm receiving this error when I try to call:
OutputFixingParser.from_llm(parser=parser, llm=ChatOpenAI())
Where parser is a class that I have built to extend BaseOutputParser. I don't think that class can be the problem because of the error I am receiving:
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for LLMChain
Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, generate_prompt (type=type_error)