Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 7909f43

Browse files
authored
fix: lc serde (#138)
1 parent 7c661a2 commit 7909f43

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

literalai/callback/langchain_callback.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,13 @@ def process_content(self, content: Any, root=True):
155155
processed_dict[key] = processed_value
156156
return processed_dict
157157
elif isinstance(content, str):
158-
return {"content": content}
158+
if root:
159+
return {"content": content}
160+
return content
159161
else:
160-
return {"content": str(content)}
162+
if root:
163+
return {"content": str(content)}
164+
return str(content)
161165

162166
def _build_llm_settings(
163167
self,

literalai/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.626"
1+
__version__ = "0.0.627"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="literalai",
5-
version="0.0.626", # update version in literalai/version.py
5+
version="0.0.627", # update version in literalai/version.py
66
description="An SDK for observability in Python applications",
77
long_description=open("README.md").read(),
88
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)