Skip to content

Commit

Permalink
Bump langchain min version and add fix for chunked messages (#11)
Browse files Browse the repository at this point in the history
Bump langchain to pick up fix for chunked messages
  • Loading branch information
eyurtsev authored Oct 3, 2023
1 parent 72607da commit 001e165
Show file tree
Hide file tree
Showing 4 changed files with 344 additions and 316 deletions.
6 changes: 5 additions & 1 deletion langserve/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
SystemMessage,
SystemMessageChunk,
)
from pydantic import BaseModel, ValidationError

try:
from pydantic.v1 import BaseModel, ValidationError
except ImportError:
from pydantic import BaseModel, ValidationError


class WellKnownLCObject(BaseModel):
Expand Down
Loading

0 comments on commit 001e165

Please sign in to comment.