mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-16 09:34:30 -04:00
[PR #89] [CLOSED] Not able to serialize object id from mongodb #339
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/89
Author: @harris
Created: 10/23/2023
Status: ❌ Closed
Base:
main← Head:fix-mongoid-not-serializable📝 Commits (1)
7c0c148fix: When serializing a message, convert ObjectId to string📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
langserve/serialization.py(+3 -0)📄 Description
Encountered this issue when using the stream endpoint only. The invoke endpoint seems to work without this change. An alternative is to not detecting the Object Id and treat everything like a plain string.
I could offer the mongodb chain in PM if needed. ty
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.