Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pydantic_objects.append error #130

Open
jack-gits opened this issue Apr 10, 2024 · 0 comments
Open

pydantic_objects.append error #130

jack-gits opened this issue Apr 10, 2024 · 0 comments

Comments

@jack-gits
Copy link

File "/Users/xuhao/anaconda3/envs/python3.9/lib/python3.9/site-packages/langchain_core/output_parsers/base.py", line 249, in aparse_result
return await run_in_executor(None, self.parse_result, result, partial=partial)
File "/Users/xuhao/anaconda3/envs/python3.9/lib/python3.9/site-packages/langchain_core/runnables/config.py", line 514, in run_in_executor
return await asyncio.get_running_loop().run_in_executor(
File "/Users/xuhao/anaconda3/envs/python3.9/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/xuhao/anaconda3/envs/python3.9/lib/python3.9/site-packages/langchain_core/output_parsers/openai_tools.py", line 152, in parse_result
raise e
File "/Users/xuhao/anaconda3/envs/python3.9/lib/python3.9/site-packages/langchain_core/output_parsers/openai_tools.py", line 147, in parse_result
pydantic_objects.append(name_dictres["type"])
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for ExtractorDefinition
json_schema
str type expected (type=type_error.str)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant