mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-16 09:34:30 -04:00
[PR #195] [MERGED] Delegate to orjson on the encoding path #419
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?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langserve/pull/195
Author: @eyurtsev
Created: 11/9/2023
Status: ✅ Merged
Merged: 11/9/2023
Merged by: @eyurtsev
Base:
main← Head:eugene/serialization📝 Commits (8)
838c7afxcddd179xaf20551Merge branch 'main' into eugene/serialization45518a2xdda8efcxe4b814dx02b1cb2x353721cMerge branch 'main' into eugene/serialization📊 Changes
6 files changed (+210 additions, -24 deletions)
View changed files
📝
langserve/serialization.py(+14 -16)📝
langserve/server.py(+8 -2)📝
poetry.lock(+62 -2)📝
pyproject.toml(+1 -0)📝
tests/unit_tests/test_serialization.py(+65 -1)📝
tests/unit_tests/test_server_client.py(+60 -3)📄 Description
Using orjson on the encoding path. This will encode well known types like uuid, datetime, date, time etc.
This PR does not handle the decoding path as decoding can only be done properly once we take into account the jsonschema.
Rolling this out partially seems fine since:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.