Langserve and fastapi-users for securing routes with per user logic #1404
Bongomannn
started this conversation in
General
Replies: 1 comment
-
I had here a problem fastapi used a newer version of pydantic and in my code i used langchain.pydantic_v1 so there was a mismatch which probably led to this error |
Beta Was this translation helpful? Give feedback.
0 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.
-
I want to secure my routes with per user logic but when i use langserve parts it breaks the fastapiserver/docs.
there is an error:
pydantic.errors.PydanticInvalidForJsonSchema: Cannot generate a JsonSchema for core_schema.PlainValidatorFunctionSchema ({'type': 'with-info', 'function': <bound method BaseModel.validate of <class 'pydantic.v1.main.user_vdbInvokeRequest'>>})
Error happens on http://localhost:8000/docs
I hope i find here somebody which is doing the same Fastapi-users with langserve elements
Beta Was this translation helpful? Give feedback.
All reactions