Replies: 1 comment 3 replies
-
The issue is related to version compatibility of dependencies. Upgrade the packages: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I followed the instructions on the How to use the output-fixing parser documentation, but encountered a TypeError when trying to instantiate OutputFixingParser.
Traceback (most recent call last):
File "02_my_outputfixparser.py", line 28, in
new_parser = OutputFixingParser.from_llm(parser=parser, llm=ChatOpenAI(model="gpt-3.5-turbo-instruct"))
File "D:\ProgramData\anaconda3\envs\langchain-test\Lib\site-packages\langchain\output_parsers\fix.py", line 62, in from_llm
return cls(parser=parser, retry_chain=chain, max_retries=max_retries)
File "D:\ProgramData\anaconda3\envs\langchain-test\Lib\site-packages\langchain_core\load\serializable.py", line 125, in init
super().init(*args, **kwargs)
File "D:\ProgramData\anaconda3\envs\langchain-test\Lib\site-packages\pydantic\main.py", line 214, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
TypeError: Can't instantiate abstract class RunnableSerializable[OutputFixingParserRetryChainInput, str] with abstract method invoke
so, how to use the output-fixing parser
System Info
System Information
Package Information
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions