Skip to content

Error with arbitrary_types_allowed #776

Answered by eyurtsev
kientv asked this question in Q&A
Discussion options

You must be logged in to vote

Could you include a minimal reproducible example?

arbitrary_types_allowed is a pydantic error indicating that some code is attempting to assign attributes that are arbitrary classes (or at least no a pydantic model or a python primitive) to a pydantic base model.

Also consider upgrading to langserve 0.3.x and moving away from the langserve.pydantic_v1 compatibility bridge

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kientv
Comment options

Answer selected by kientv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants