You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
Thank you for bringing this issue to our attention. It looks like you are trying to instantiate an abstract class, BaseLanguageModel, which is not allowed. Abstract classes are classes that contain one or more abstract methods. Abstract methods are methods that are declared, but contain no implementation.
In order to fix this issue, you will need to create a concrete class that extends BaseLanguageModel and implements the abstract methods. You can find more information about abstract classes and methods in the Python documentation.
I hope this helps! Let me know if you have any other questions.
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)
The text was updated successfully, but these errors were encountered: