Skip to content

Can't instantiate abstract class BaseLanguageModel #10

@nasirus

Description

@nasirus

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions