mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-19 22:03:48 -04:00
bug in APIHandler _rename_pydantic_model #243
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Hacky-DH on GitHub (Dec 1, 2024).
bug at this line https://github.com/langchain-ai/langserve/blob/main/langserve/api_handler.py#L316
TypeError: issubclass() arg 1 must be a class
when I use APIHandler with different input schema runnable.
My model is
pydantic use V2.
Very simple to produce issue:
@Hacky-DH commented on GitHub (Dec 1, 2024):
use isinstance instead issubclass?